Hi,

In your sample code,

tx.add(new AttributeModifier("size",true, new Model(String.valueOf(8))));
It shows all the size of textbox is same.

I want to change the size of text box value according to text each contents



Ayodeji Aladejebi wrote:
> 
> meanwhile,
> if yu look at this code in the Wicket - JExcel example
> 
> Cell cell = sheet.getCell(col, row);
>                                     values[row][col] = new XCell(row,
> col,cell.getContents());
> 
>                                     return values[row][col].getData();
> 
> 
> The Cell object is from JExcel and its where Datatype should be retrieved
> from
> 
> 2. To validate,
> 
> You can write a default wicket validator (See Validator examples),
> The validator can access the Textfield arrays and then check for validity
> 
> its shouldn't be too difficult anyway
> 
> 
> 
> On 6/28/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>>
>> I think that is within the scope of the JExcel API and not a wicket
>> thing.
>> Refer to the JExcel API doc first
>>
>> On 6/28/07, Edi < [EMAIL PROTECTED]> wrote:
>> >
>> >
>> > Hi,
>> >
>> > I am Newbie of Wicket. I have downloaded sample example to read XLS
>> file
>> >
>> > using Wicket with JExcel.
>> > It's working fine.
>> >
>> > My doubt is 1.How can I retrieve the datatype of each cell? and 2. How
>> > to
>> > validate the each cell values?
>> >
>> > Please give me some Suggestions.
>> >
>> > Thanking You.
>> > Regards,
>> > Edi
>> > --
>> > View this message in context:
>> > http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> >
>> >
>> -------------------------------------------------------------------------
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > _______________________________________________
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>>
>>
>>
>> --
>>
>>
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11356793
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to