Skip to Content

GridLayout Issues

Is anyone aware of issues with the GridLayout in HTMLB? I am trying to code an iview which uses GridLayout and for some reason the server crashes for certain layout elements in the GridLayout. I am almost certain its an issue with the Layout as there is no other component/code fragment that could cause this. I am using a JSP page with HTMLB tags.

Any help on this is greatly appreciated!

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2005 at 04:54 AM

    Hi Siddhartha,

    This certainly is not an issue with the HTMLB Gridlayout. I have been using it for more than 2 years and have never been able to make my server crash. Only difference is that i have been using the Java API's.

    It looks more like a problem in your jsp code. Posting a snippet of your jsp code where you create and put data in the gridlayout would be helpful.

    Akhilesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Here is the code snippet. The cells 1,5 and 1,6 causing a crash..

      Here is how the gridLayout declaration is

      <hbj:gridLayout 
      						id="myGrid" 
      						rowSize="10" 
      						cellPadding="5" 
      						columnSize="40">
      
      
      	<hbj:gridLayoutCell 
      						id="gridCell11" 
      						rowIndex="1" 
      						columnIndex="4" 
      						horizontalAlignment="10" 
      						verticalAlignment="10" 
      						width="25">
      						<hbj:dropdownListBox 
      							id="unit1" 
      							tooltip="Unit Price" 
      							selection="" 
      							nameOfKeyColumn="KeyCol" 
      							nameOfValueColumn="KeyVal" 
      							onSelect="Select">
      							<hbj:listBoxItem 
      								key="USD" 
      								value="USD" 
      								selected="true" 
      								/>
      						</hbj:dropdownListBox>
      					</hbj:gridLayoutCell>
      					
      					<hbj:gridLayoutCell 
      						id="gridCell15" 
      						rowIndex="1" 
      						columnIndex="5" 
      						horizontalAlignment="10" 
      						verticalAlignment="10" 
      						width="25">
      						<hbj:inputField 
      							id="upcharge" 
      							maxlength="60" 
      							value="">
      						</hbj:inputField>
      					</hbj:gridLayoutCell>
      					
      					<hbj:gridLayoutCell 
      						id="gridCell16" 
      						rowIndex="1" 
      						columnIndex="6" 
      						horizontalAlignment="10" 
      						verticalAlignment="10" 
      						width="25">
      						<hbj:textView 
      							encode="false" 
      							text="Upcharge" 
      							/>
      					</hbj:gridLayoutCell>

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2005 at 05:51 PM

    Hi,

    This problem is exactly similar to the one I'm having right now. I've used a gridview tag in the JSP of an iview and the server crashes when I add a certain cell that contains absolutely no coding !! This situation is reproducable. Did you find a solution for this strange problem? I've lost an entire day with it :-(.

    Any help is much appreciated.

    Thanks

    Manuel.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2005 at 06:47 PM

    The documentation I have on gridLayoutCell says that the correct values for horizontalAlignment are LEFT, RIGHT, CENTER, CHAR, and JUSTIFY and that the correct values for verticalAlignment are BASELINE, BOTTOM, MIDDLE, and TOP. You have "10" for these attributes. I don't know why this would make your server crash, but maybe changing these attributes will fix the problem.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.