Re: Create table with columns from a list

2009-10-18 Thread Mauro Ciancio
Igor:

On Sun, Oct 18, 2009 at 11:33 PM, Igor Vaynberg wrote:

> use GridView.
>

Excellent, I didnt know it. That's what I was looking for.
Thans again,
-- 
Mauro Ciancio


Re: Create table with columns from a list

2009-10-18 Thread Igor Vaynberg
use GridView.

-igor

On Sun, Oct 18, 2009 at 4:40 PM, Mauro Ciancio  wrote:
> Hi everyone,
>
>  I'm searching for a component which allows to me to create a table with
> a few columns and put in each cell items from a list. But when the list
> has more than n items, create a new row in the table with the remainings
> items
> in the list.
>
> For example, if i have 5 items in the list and my table is created with 3
> columns,
> the result will be:
>
> -
>  x |  x | x
> -
>  x |  x |
>
> Any ideas?
> Should I create my own component?
>
> Thanks in advance,
> Cheers!
> --
> Mauro Ciancio
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: css in DefaultDataTable

2009-10-18 Thread Igor Vaynberg
default datatable provides some css classes, you just need to provide
your own rules that match those classes.

-igor

On Sun, Oct 18, 2009 at 1:48 AM,   wrote:
> Is there any way that you can apply your own css to datatable. I saw some 
> user mentioning inmethod api but that uses its own internal DefaultDataGrid 
> from inmethod library . Looks like inmethod implemented everything on it's 
> own. I would like to know what would be the easiest way to do it in 
> DefaultDataTable . Is there any way i can overide some of the method in 
> PropertyColumn to do that.
> thank you

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DropDownChoice and null value internationalization key

2009-10-18 Thread Igor Vaynberg
add an rfe into our jira.

-igor

On Sun, Oct 18, 2009 at 11:38 AM, guillaume.mary
 wrote:
>
> well, that's for the first reason.
>
> Doing this would allow us to distinguish wicket Ids from keys. So it would
> be really better for our translators since we could concentrate our keys in
> a couple of files, and prefixing our keys (or even rename them totally)
> could add sense to them. Currently those are linked to the wicketId which is
> not always well named (even more if we use it in a reusable component).
>
>
>
> igor.vaynberg wrote:
>>
>> sorry, i dont really understand...
>>
>> you want to change the name of the keys because you do not like the
>> "null" and "nullValid" terms?
>>
>> or do you want to change them globally? in which case you can have the
>> "null" and "nullValid" keys defined in your MyApplication.properties.
>>
>> -igor
>>
>> On Fri, Oct 16, 2009 at 5:30 AM, Guillaume Mary
>>  wrote:
>>> Hi all,
>>>
>>> The DropDownChoice and overall AbstractSingleSelectChoice does not allow
>>> to specify the internationalization key for null nor nullValid values.
>>> Instead it laies down the management of those keys with getId() +
>>> ".null".
>>>
>>> I suggest a very small enhancement to externalize the building of these
>>> keys in 2 protected methods getNullKey() and getNullValidKey() (the names
>>> don't really matter) and call them in the
>>> AbstractSingleSelectChoice.getDefaultChoice(Object) method.
>>>
>>> It won't disturb the actual running and allows developper to organize
>>> their keys as they like in order to help translators know what keys are
>>> about (with prefix for example). For now this is not possible, or we have
>>> to change component ids ...
>>>
>>>
>>> Here are the 2 methods :
>>> protected String getNullValidKey() {
>>>                               return getId() + ".nullValid";
>>>                }
>>>
>>>                protected String getNullKey() {
>>>                               return getId() + ".null";
>>>                }
>>>
>>>
>>> If ok, I can create a JIRA enhancement with the full patch.
>>>
>>> Thanks
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/DropDownChoice-and-null-value-internationalization-key-tp25924643p25949202.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Create table with columns from a list

2009-10-18 Thread Mauro Ciancio
Jeremy:

On Sun, Oct 18, 2009 at 9:51 PM, Jeremy Thomerson  wrote:

> create your own with, for example, repeating viw
>

Thanks you, I'll give it a try.
-- 
Mauro Ciancio


Re: Create table with columns from a list

2009-10-18 Thread Jeremy Thomerson
create your own with, for example, repeating viw

--
Jeremy Thomerson
http://www.wickettraining.com



On Sun, Oct 18, 2009 at 6:40 PM, Mauro Ciancio wrote:

> Hi everyone,
>
>  I'm searching for a component which allows to me to create a table with
> a few columns and put in each cell items from a list. But when the list
> has more than n items, create a new row in the table with the remainings
> items
> in the list.
>
> For example, if i have 5 items in the list and my table is created with 3
> columns,
> the result will be:
>
> -
>  x |  x | x
> -
>  x |  x |
>
> Any ideas?
> Should I create my own component?
>
> Thanks in advance,
> Cheers!
> --
> Mauro Ciancio
>


Create table with columns from a list

2009-10-18 Thread Mauro Ciancio
Hi everyone,

  I'm searching for a component which allows to me to create a table with
a few columns and put in each cell items from a list. But when the list
has more than n items, create a new row in the table with the remainings
items
in the list.

For example, if i have 5 items in the list and my table is created with 3
columns,
the result will be:

-
  x |  x | x
-
  x |  x |

Any ideas?
Should I create my own component?

Thanks in advance,
Cheers!
-- 
Mauro Ciancio


Re: DropDownChoice and null value internationalization key

2009-10-18 Thread guillaume.mary

well, that's for the first reason.

Doing this would allow us to distinguish wicket Ids from keys. So it would
be really better for our translators since we could concentrate our keys in
a couple of files, and prefixing our keys (or even rename them totally)
could add sense to them. Currently those are linked to the wicketId which is
not always well named (even more if we use it in a reusable component). 



igor.vaynberg wrote:
> 
> sorry, i dont really understand...
> 
> you want to change the name of the keys because you do not like the
> "null" and "nullValid" terms?
> 
> or do you want to change them globally? in which case you can have the
> "null" and "nullValid" keys defined in your MyApplication.properties.
> 
> -igor
> 
> On Fri, Oct 16, 2009 at 5:30 AM, Guillaume Mary
>  wrote:
>> Hi all,
>>
>> The DropDownChoice and overall AbstractSingleSelectChoice does not allow
>> to specify the internationalization key for null nor nullValid values.
>> Instead it laies down the management of those keys with getId() +
>> ".null".
>>
>> I suggest a very small enhancement to externalize the building of these
>> keys in 2 protected methods getNullKey() and getNullValidKey() (the names
>> don't really matter) and call them in the
>> AbstractSingleSelectChoice.getDefaultChoice(Object) method.
>>
>> It won't disturb the actual running and allows developper to organize
>> their keys as they like in order to help translators know what keys are
>> about (with prefix for example). For now this is not possible, or we have
>> to change component ids ...
>>
>>
>> Here are the 2 methods :
>> protected String getNullValidKey() {
>>                               return getId() + ".nullValid";
>>                }
>>
>>                protected String getNullKey() {
>>                               return getId() + ".null";
>>                }
>>
>>
>> If ok, I can create a JIRA enhancement with the full patch.
>>
>> Thanks
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-and-null-value-internationalization-key-tp25924643p25949202.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: enclosure error

2009-10-18 Thread Sam Zilverberg
thanks, I'l downgrade from 1.4.2 to 1.4.1.

On Sun, Oct 18, 2009 at 7:41 PM, Girts Ziemelis wrote:

> If you are using 1.4.2, there is a known problem with enclosures, which has
> been fixed in 1.4 snapshot:
> https://issues.apache.org/jira/browse/WICKET-2506
>
> Either upgrade to snapshot or downgrade to 1.4.1.
>
>
> Sam Zilverberg wrote:
>
>> i'm getting the following error:
>>
>> WicketMessage: Could not find child with id: serial in the
>> wicket:enclosure
>>
>> Root cause:
>>
>> org.apache.wicket.WicketRuntimeException: Could not find child with id:
>> serial in the wicket:enclosure
>> at
>>
>> org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210)
>> at
>>
>> org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249)
>> at
>>
>> org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169)
>> at org.apache.wicket.Component.renderComponent(Component.java:2626)
>> etc etc
>>
>> this is the part of my html that has the wicket:enclosure in it:
>> 
>> 
>>
>>
>>
>>
>>
>>Serial
>>> maxlength="32" />
>>
>>
>>etc etc...
>>
>> and in the java code i'm adding the component with id "serial" to the form
>> "deviceForm".
>>
>> anyone has any idea why this is happening?
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: enclosure error

2009-10-18 Thread Per Newgro

Sorry ignore my answer. I looked at the wrong line.

Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: enclosure error

2009-10-18 Thread Girts Ziemelis
If you are using 1.4.2, there is a known problem with enclosures, which 
has been fixed in 1.4 snapshot:

https://issues.apache.org/jira/browse/WICKET-2506

Either upgrade to snapshot or downgrade to 1.4.1.

Sam Zilverberg wrote:

i'm getting the following error:

WicketMessage: Could not find child with id: serial in the wicket:enclosure

Root cause:

org.apache.wicket.WicketRuntimeException: Could not find child with id:
serial in the wicket:enclosure
at
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210)
at
org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249)
at
org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169)
at org.apache.wicket.Component.renderComponent(Component.java:2626)
etc etc

this is the part of my html that has the wicket:enclosure in it:







Serial



etc etc...

and in the java code i'm adding the component with id "serial" to the form
"deviceForm".

anyone has any idea why this is happening?

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: enclosure error

2009-10-18 Thread Per Newgro

> Serial

If i'm not completly wrong, you don't need to add serial to your java code.
You have to provide an i18n value in your .properties file.

Did you check http://cwiki.apache.org/WICKET/general-i18n-in-wicket.html

Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



enclosure error

2009-10-18 Thread Sam Zilverberg
i'm getting the following error:

WicketMessage: Could not find child with id: serial in the wicket:enclosure

Root cause:

org.apache.wicket.WicketRuntimeException: Could not find child with id:
serial in the wicket:enclosure
at
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210)
at
org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249)
at
org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169)
at org.apache.wicket.Component.renderComponent(Component.java:2626)
etc etc

this is the part of my html that has the wicket:enclosure in it:







Serial



etc etc...

and in the java code i'm adding the component with id "serial" to the form
"deviceForm".

anyone has any idea why this is happening?


Wicketstuff - YUI - Can't get Sub menus in menu bar to work

2009-10-18 Thread mark
Hi all,

I am trying to get YUI menu bar working. I have downloaded the yui-1.4.1
jar from wicketstuff's subversion repository. I have the a createMenuBar
method in my class and html template.

-Class Method Called From Page
Constructor-

   private void createMenuBar(){
menuBar = new YuiMenuBar("menuBar"){
@Override
protected String getOpts()
{
Attributes attributes = new Attributes();
attributes.add(new Attributes("visible", true));
attributes.add(new Attributes("clicktohide", 
true));
attributes.add(new 
Attributes("autosubmenudisplay", true));
attributes.add(new Attributes("hidedelay", 
5000));
attributes.add(new
Attributes("effect","{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}"));
return attributes.toString();
}
};
menuBar.setOutputMarkupId(true);

YuiMenuBarItem sample = menuBar.addMenu("Sample1");
YuiMenuBarItem sampleSet = menuBar.addMenu("Sample2");
YuiMenuBarItem batch = menuBar.addMenu("Sample3");
YuiMenuBarItem instrument = menuBar.addMenu("Sample4");
YuiMenuBarItem report = menuBar.addMenu("Sample5");
YuiMenuBarItem admin = menuBar.addMenu("Sample6");

YuiMenu subMenu = sample.newSubMenu("mb_sample");
subMenu.addMenuItem(new TestAction("Sub Sample1"));
subMenu.addMenuItem(new TestAction("Sub Sample2"));

subMenu = sampleSet.newSubMenu("Test");
subMenu.addMenuItem(new TestAction("Sub Sample3"));
subMenu.addMenuItem(new TestAction("Sub Sample4"));

this.add(menuBar);

}

-HTML Template --


Page Title



[Menu Bar]




I get the first level of the menu bar but no submenu's clicking or
hovering on the main menu link just results in the menu item being
highlighted in yellow.

What am I missing?

regards

Mark



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Reporting Framework & Wicket

2009-10-18 Thread Douglas Ferguson
I thought it also brought the capability to generate pdf and word  
docs, which I don't think JFreeChart can do..

D

On Oct 17, 2009, at 1:42 PM, nino martinez wael wrote:

> As I see it jasper reports are just a configurable way of using  
> jfreecharts,
> not sure it that brings more understanding though :)
>
> http://images.google.dk/images?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hl=da&source=hp&q=jfreecharts&btnG=S%C3%B8g+i+billeder&gbv=2&aq=f&oq=
>
> 2009/10/17 Douglas Ferguson 
>
>> I have to admit, I've never used Jasper or NexReports, so I'm not  
>> sure
>> I follow all of this..
>>
>>
>> On Oct 15, 2009, at 10:14 AM, Decebal Suiu wrote:
>>
>>>
>>> Hello,
>>>
>>> We use Wicket with NextReports (http://www.next-reports.com/) and
>>> Jasper.
>>> Basically, in Wicket you will have logic for the form that will fill
>>> report
>>> parameters. For Jasper we
>>> also have a logic for edit parameters (we added more functionality  
>>> to
>>> parameter definition that we could not find in any jasper designer
>>> tool).
>>>
>>> Depending on how parameters are defined (in your report designer
>>> tool) you
>>> may have to add the following business  :
>>> - chained parameters (to fill children parameters if parent
>>> parameters are
>>> selected)
>>> - default values (fill default values for parameters)
>>> - hidden parameters (parameters which are substituted with their
>>> values when
>>> the report is ran by human process or by scheduler process)
>>>
>>> After the parameter values selection process , you will just have to
>>> use the
>>> api offered by your reporting framework.
>>>
>>> For example in Next it is simple as this :
>>>
>>> FluentReportRunner.report(report)
>>> .connectTo(connection)
>>> .withQueryTimeout(60)
>>> .withParameterValues(createParameterValues())
>>> .formatAs(ReportRunner.HTML_FORMAT)
>>> .run(stream);
>>>
>>>
>>> Douglas Ferguson-2 wrote:

 Hey,

 I'm starting to look into reporting frameworks and was curious if
 anybody had successfully integrated with wicket?

 Are there any "off the shelf" integrations or will I have to roll  
 my
 own?

 D/

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



>>>
>>> --
>>> View this message in context:
>> http://www.nabble.com/Reporting-Framework---Wicket-tp25894303p25910426.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: css in DefaultDateTable

2009-10-18 Thread James Carman
Have you tried overriding the getCssClass() method on PropertyColumn
(defined in AbstractColumn)?

On Sun, Oct 18, 2009 at 6:04 AM, Per Newgro  wrote:
> Am i right here: you want to exchange the css class of an td to bring up
> your own layout?
> This seems heavyweight to me. Why not simply overwrite the css class
> definition?
>
> CHerrs
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod

2009-10-18 Thread Martin Grigorov
El dom, 18-10-2009 a las 07:32 +, wicketmon...@comcast.net escribió:
> I came across inmethod that has it own wicket component like PropertyColumn. 
> Is it standard for wicket developement to use it.If so where can i get it and 
> where can i get the source file 
> thank you 

The source of inmethod-grid could be found at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent

download it locally with : 
svn co
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent

Check the examples code. There you'll see most of the Column
implementations.
The examples were deployed at http://wicketstuff.org/grid-examples but
now they are not there for some reason. You'll need to deploy them
locally to see them in action.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod

2009-10-18 Thread Matej Knopp
Hi,

InMethod grid is in wicketstuff SVN.

-Matej

On Sun, Oct 18, 2009 at 9:32 AM,   wrote:
>
> I came across inmethod that has it own wicket component like PropertyColumn. 
> Is it standard for wicket developement to use it.If so where can i get it and 
> where can i get the source file
> thank you
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: css in DefaultDateTable

2009-10-18 Thread Per Newgro
Am i right here: you want to exchange the css class of an td to bring up 
your own layout?
This seems heavyweight to me. Why not simply overwrite the css class 
definition?


CHerrs
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: css in DefaultDateTable

2009-10-18 Thread wicketmonkey
I want to use certain css to my the table column. Basically I was wondering if 
i could overide any method in my PropertyColumn or other class so that it could 
render my own td style rather than default  
eg i would want my td to be  
- Original Message - 
From: "Per Newgro"  
To: users@wicket.apache.org 
Sent: Sunday, October 18, 2009 1:50:43 AM GMT -08:00 US/Canada Pacific 
Subject: Re: css in DefaultDateTable 

It depends on your structure of html components. Here are the basics 
http://www.w3.org/TR/CSS2/cascade.html 

Cheers 
Per 

- 
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
For additional commands, e-mail: users-h...@wicket.apache.org 



Re: css in DefaultDateTable

2009-10-18 Thread Per Newgro
It depends on your structure of html components. Here are the basics 
http://www.w3.org/TR/CSS2/cascade.html


Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



css in DefaultDataTable

2009-10-18 Thread wicketmonkey
Is there any way that you can apply your own css to datatable. I saw some user 
mentioning inmethod api but that uses its own internal DefaultDataGrid from 
inmethod library . Looks like inmethod implemented everything on it's own. I 
would like to know what would be the easiest way to do it in DefaultDataTable . 
Is there any way i can overide some of the method in PropertyColumn to do that. 
thank you 

css in DefaultDateTable

2009-10-18 Thread wicketmonkey
Is there any way that you can apply your own css to datatable. I saw some user 
mentioning inmethod api but that uses its own internal DefaultDataGrid from 
inmethod library . Looks like inmethod implemented everything on it's own. I 
would like to know what would be the easiest way to do it in DefaultDataTable . 
Is there any way i can overide some of the method in PropertyColumn to do that. 
thank you 


inmethod

2009-10-18 Thread wicketmonkey

I came across inmethod that has it own wicket component like PropertyColumn. Is 
it standard for wicket developement to use it.If so where can i get it and 
where can i get the source file 
thank you