Re: TabbedPanel replaced by AjaxTabbedPanel shows request NS_BINDING_ABORTED

2010-02-08 Thread Riyad Kalla
No problem.

On Mon, Feb 8, 2010 at 11:02 PM, Kulbhushan Sharma
 wrote:
> Riyad, thanks for the explaination and the links.
>
>
>
>
>
> 
> From: Riyad Kalla 
> To: users@wicket.apache.org
> Sent: Mon, 8 February, 2010 11:12:22 PM
> Subject: Re: TabbedPanel replaced by AjaxTabbedPanel shows request  
> NS_BINDING_ABORTED
>
> Kulbhushan,
>
> I think this is the result of Wicket using abort() calls on the
> recycled XMLHttpRequest objects that are pooled as discussed here?
> http://old.nabble.com/Ajax-request-bug--td27324473.html#a27327789
>
>
>
> On Mon, Feb 8, 2010 at 3:17 AM, Kulbhushan Sharma
>  wrote:
>> Hello,
>>
>> I have the following code to implement a Ajax Tabbed Panel.
>>
>> public class TBPage extends WebPage{
>>
>>    public TBPage() {
>>        AjaxTabbedPanel tabPanel = null;
>>        List tabs = new ArrayList(2);
>>
>>        tabs.add(new TabOne());
>>        tabs.add(new TabTwo());
>>
>>        tabPanel = new AjaxTabbedPanel("tabs", tabs);
>>        this.add(tabPanel);
>>
>>
>>    }
>>
>> }
>>
>> When I access this page with FireFox and with HTTPFox enabled --- everytime 
>> I click on a Tab I get NS_BINDING_ABORTED as return status of the request 
>> before the tab appears. If I just replace AjaxTabbedPanel by TabbedPanel 
>> there is no such problem --- but obviously the whole page refreshes and I do 
>> not want that.
>>
>> Please note, all functionality works fine --- but I am concerned that this 
>> error may be root cause of something else. The link 
>> http://markmail.org/message/m6z77uoixf3qu7u6 tells us some request was 
>> aborted --- but what is that?
>>
>> Thanks for your response in advance.
>>
>> Regards,
>> Kulbhushan
>>
>>
>>
>>      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
>> http://downloads.yahoo.com/in/internetexplorer/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
> http://downloads.yahoo.com/in/internetexplorer/

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



Re: TabbedPanel replaced by AjaxTabbedPanel shows request NS_BINDING_ABORTED

2010-02-08 Thread Kulbhushan Sharma
Riyad, thanks for the explaination and the links.






From: Riyad Kalla 
To: users@wicket.apache.org
Sent: Mon, 8 February, 2010 11:12:22 PM
Subject: Re: TabbedPanel replaced by AjaxTabbedPanel shows request  
NS_BINDING_ABORTED

Kulbhushan,

I think this is the result of Wicket using abort() calls on the
recycled XMLHttpRequest objects that are pooled as discussed here?
http://old.nabble.com/Ajax-request-bug--td27324473.html#a27327789



On Mon, Feb 8, 2010 at 3:17 AM, Kulbhushan Sharma
 wrote:
> Hello,
>
> I have the following code to implement a Ajax Tabbed Panel.
>
> public class TBPage extends WebPage{
>
>public TBPage() {
>AjaxTabbedPanel tabPanel = null;
>List tabs = new ArrayList(2);
>
>tabs.add(new TabOne());
>tabs.add(new TabTwo());
>
>tabPanel = new AjaxTabbedPanel("tabs", tabs);
>this.add(tabPanel);
>
>
>}
>
> }
>
> When I access this page with FireFox and with HTTPFox enabled --- everytime I 
> click on a Tab I get NS_BINDING_ABORTED as return status of the request 
> before the tab appears. If I just replace AjaxTabbedPanel by TabbedPanel 
> there is no such problem --- but obviously the whole page refreshes and I do 
> not want that.
>
> Please note, all functionality works fine --- but I am concerned that this 
> error may be root cause of something else. The link 
> http://markmail.org/message/m6z77uoixf3qu7u6 tells us some request was 
> aborted --- but what is that?
>
> Thanks for your response in advance.
>
> Regards,
> Kulbhushan
>
>
>
>  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
> http://downloads.yahoo.com/in/internetexplorer/

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


  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/

Re: Wicket Layout

2010-02-08 Thread Ernesto Reinaldo Barreiro
Hi Lionel,

I didn't know this existed:-( I look into the examples on

http://www.wiquery.org/wiquery-examples-1.0/

before deciding to implement it myself on

http://code.google.com/p/wijqgrid/source/browse/#svn/trunk/wijqgrid/src/main/java/com/jquery/layout

Best,

Ernesto

On Tue, Feb 9, 2010 at 2:16 AM, Lionel Armanet wrote:

>
> Hello,
>
> You can find an example of a jQuery layout plugin (this one:
> http://layout.jquery-dev.net/) in the wiQuery project.
>
> If you go visit wiQuery's google code (http://code.google.com/p/wiquery),
> you'd find under our svn (in /svn/examples/wiquery-presentation-examples) a
> taskboard application with a border layout plugin.
>
> Hope this helps,
>
>
> kinabalu wrote:
> >
> > might look at some of the integrations with jquery or yui.  I believe
> both
> > of those frameworks have something similar, and I'd guess the respective
> > wicket projects working on integration have them, or could be added.
> >
> > i don't know enough about dojo though, sorry
> >
> > On Feb 7, 2010, at 10:09 PM, Josh Kamau wrote:
> >
> >> Andrew ;
> >>
> >> How about the splitPanel ?  and the accordion?
> >>
> >> On Mon, Feb 8, 2010 at 9:01 AM, Andrew Lombardi
> >> wrote:
> >>
> >>> it's definitely an involved layout ... but nothing here looks out of
> the
> >>> question.
> >>>
> >>> tabbedpanel's for Inbox | Contacts
> >>> the tree from wicket-extensions for the folder viewer
> >>> the datatable from wicket-extensions for the lsit of messages
> >>> there are modal windows, all available
> >>>
> >>> so yes, wicket should be able to support this.  not sure about the dojo
> >>> integration
> >>>
> >>> On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote:
> >>>
>  Hi guys;
> 
>  I think wicket is the best java web framework out there. However , i
> >>> really
>  would like be to able to create a layout like this :
>  http://demos.dojotoolkit.org/demos/mail/
> 
>  Does the current dojo integration support this. Is it possible to
>  create
>  such a layout with vanilla  wicket?
> 
>  regards.
> 
>  Josh
> >>>
> >>>
> >>> To our success!
> >>>
> >>> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> >>>
> >>> ANDREW LOMBARDI | and...@mysticcoders.com
> >>> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> >>> ofc: 714-816-4488
> >>> fax: 714-782-6024
> >>> cell: 714-697-8046
> >>> linked-in: http://www.linkedin.com/in/andrewlombardi
> >>> twitter: http://www.twitter.com/kinabalu
> >>>
> >>> Eco-Tip: Printing e-mails is usually a waste.
> >>>
> >>> 
> >>> This message is for the named person's use only. You must not, directly
> >>> or
> >>> indirectly, use,
> >>> disclose, distribute, print, or copy any part of this message if you
> are
> >>> not the intended recipient.
> >>> 
> >>>
> >>>
> >
> >
> > To our success!
> >
> > Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> >
> > ANDREW LOMBARDI | and...@mysticcoders.com
> > 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> > ofc: 714-816-4488
> > fax: 714-782-6024
> > cell: 714-697-8046
> > linked-in: http://www.linkedin.com/in/andrewlombardi
> > twitter: http://www.twitter.com/kinabalu
> >
> > Eco-Tip: Printing e-mails is usually a waste.
> >
> > 
> > This message is for the named person's use only. You must not, directly
> or
> > indirectly, use,
> >  disclose, distribute, print, or copy any part of this message if you are
> > not the intended recipient.
> > 
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Wicket-Layout-tp27495561p27509045.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: Loading properties file while using Spring @L

2010-02-08 Thread Igor Vaynberg
salve is a bytecode instrumentor that hooks into an existing ioc
container and makes injecting any object easy and serialization-safe.

-igor

On Mon, Feb 8, 2010 at 6:13 PM, Alec Swan  wrote:
> Igor, I looked at Salve even though James suggestion will work for my
> small project.
>
> If I understood correctly Salve is an IoC container which can
> serialize objects with complex dependencies. I think this can be very
> useful when serializing Wicket components that depend on DAO or other
> types of services.
>
> Thanks!
>
> Alec
>
> On Mon, Feb 8, 2010 at 7:08 PM, Alec Swan  wrote:
>> Thanks James, this is awesome! This is what I ended up doing in my
>> Wicket WebApplication object:
>>
>> @SpringBean(name = "myConfiguration")
>> private MyConfiguration myConfiguration;
>>
>> protected void init() {
>>        super.init();
>>
>>        // integrate with Spring
>>        addComponentInstantiationListener(new SpringComponentInjector(this));
>>        InjectorHolder.getInjector().inject(this); // injects
>> @SpringBean dependencies of this object
>> }
>>
>>
>> On Mon, Feb 8, 2010 at 6:52 PM, James Carman
>>  wrote:
>>> You can inject anything you like that's annotated with the @SpringBean
>>> annotations:
>>>
>>> InjectorHolder.getInjector().inject(someNonComponentObject);
>>>
>>> On Mon, Feb 8, 2010 at 8:46 PM, Alec Swan  wrote:
 Andrew, I use @SpringBean annotations in Wicket components. How do you
 use annotation-based approach to inject dependencies in the Wicket
 application object?

 On Mon, Feb 8, 2010 at 6:30 PM, Andrew Lombardi  
 wrote:
> the annotation-based approach is the most often used on that page.
>
> On Feb 8, 2010, at 5:28 PM, Alec Swan wrote:
>
>> Igor, how do you inject the configuration bean in the Wicket
>> application? Do you use
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>> approach?
>>
>> Thanks,
>>
>> Alec
>>
>> On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
>> wrote:
>>> i usually create a seperate bean that represents the properties and
>>> let spring fill those in via the property configurer. then inject the
>>> bean and you are done.
>>>
>>> -igor
>>>
>>> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
 Igor, were you suggesting the same approach as James did?

 If so, I am already using @SpringBean annotations and I am wondering
 if they will continue to work with the
 http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
 approach?

 Thanks.

 On Mon, Feb 8, 2010 at 4:41 AM, James Carman
  wrote:
> You can use the Spring integration to actually create your application
> object for you:
>
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>
> Then, you can wire in anything into it that you want, just like any
> other Spring bean (because it *is* just another Spring bean)
>
> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
>> I use Wicket, Spring and wicket-spring extensions. Spring
>> configuration loads properties from config/env.properties file using
>> PropertyPlaceholderConfigurer. I would like to add more properties to
>> this file and read them from my Wicket application class. I tried to
>> inject a Spring Resource using @SpringBean annotation, but it doesn't
>> work in the my Wicket application class.
>>
>> I am looking for recommendations on how to read properties files from
>> wicket application class. Ideally I would like to use a single
>> properties file read by Wicket and Spring.
>>
>> Thanks,
>>
>> Alec
>>
>> -
>> 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


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

Re: Form#anyComponentError change in 1.4 breaks validation

2010-02-08 Thread Igor Vaynberg
yes, that would definately help, as well as a testcase.

-igor

On Mon, Feb 8, 2010 at 6:22 PM, Russell Morrisey
 wrote:
> Thanks Igor,
>
> It seems like maybe WICKET-2026 is also related:
> http://issues.apache.org/jira/browse/WICKET-2026
> This changes how Form#anyFormComponentError handles border components, it 
> looks like, but also switches us to a FormComponent visitor.
>
> Will it be helpful if I create a new JIRA issue?
>
> RUSSELL E. MORRISEY
> Programmer Analyst Professional
> Mission Solutions Engineering, LLC
>
> | russell.morri...@missionse.com | www.missionse.com
> 304 West Route 38, Moorestown, NJ 08057
>
> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: Monday, February 08, 2010 1:20 PM
> To: users@wicket.apache.org
> Cc: Juergen Donnerstag
> Subject: Re: Form#anyComponentError change in 1.4 breaks validation
>
> Juergen,
>
> do you remember what the problem was taking out the instanceof checks
> for Form and FormComponent? i dont see why they were added or why
> removing them would cause problems...
>
> seems some changes are related to WICKET-2202
>
> cheers
> -igor
>
> On Mon, Feb 8, 2010 at 9:14 AM, Russell Morrisey
>  wrote:
>> We are in the process of upgrading our application from wicket 1.3 to 1.4.5. 
>> There were a lot of minor changes due to the generics-related code changes, 
>> but for the most part the upgrade has been smooth. One big problem we've 
>> recently come across:
>>
>> Form#anyComponentError was changed in this version. This is a breaking 
>> change for our application, with no simple workaround provided. Please 
>> consider rolling it back to the previous behavior.
>>
>> In the previous version of wicket, all types of components in the Form's 
>> child hierarchy were checked for component.hasErrorMessage() during form 
>> validation; any error registered against a component would cause a 
>> validation failure. In the new version, only instances of Form or 
>> FormComponent are checked; errors registered against other components are 
>> ignored.
>>
>> Example use case: We have a customized inmethod DataGrid (excellent 
>> component!) which displays line items from a project estimate (ROM details). 
>> Each line item is identified by a number of reference fields, such as the 
>> Module which will be affected by the change, and the Paragraph of the spec 
>> which specifies the requirements for the change. The grid has a validation 
>> which ensures that a new line item isn't a duplicate (i.e., doesn't have the 
>> same Module/Paragraph/etc. combination). It seems to make the most sense to 
>> register the error against the DataGrid row, since the row represents the 
>> line item that is a duplicate; but the new Form validation logic ignores 
>> this change and saves the duplicate into the database. We want the row to 
>> detect when it has a validation error registered, and show a new CSS class 
>> (marking the row as invalid by making it orange) when we detect the 
>> duplicate; but it doesn't make sense to ascribe the validation error to a 
>> particular FormComponent on the row. I don't think the hierarchy of the 
>> datagrid permits us to make the row itself a Form without extensive changes.
>>
>> Please let me know what you guys think. I can resend this to the dev mailing 
>> list if it's more helpful, or put up a JIRA issue.
>> 
>>
>> RUSSELL E. MORRISEY
>> Programmer Analyst Professional
>> Mission Solutions Engineering, LLC
>>
>> | russell.morri...@missionse.com | 
>> www.missionse.com
>> 304 West Route 38, Moorestown, NJ 08057
>>
>>
>> 
>> This is a PRIVATE message. If you are not the intended recipient, please 
>> delete without copying and kindly advise us by e-mail of the mistake in 
>> delivery.
>> NOTE: Regardless of content, this e-mail shall not operate to bind MSE to 
>> any order or other contract unless pursuant to explicit written agreement or 
>> government initiative expressly permitting the use of e-mail for such 
>> purpose.
>>
>
>
> This is a PRIVATE message. If you are not the intended recipient, please 
> delete without copying and kindly advise us by e-mail of the mistake in 
> delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
> order or other contract unless pursuant to explicit written agreement or 
> government initiative expressly permitting the use of e-mail for such purpose.
>
> -
> 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: Form#anyComponentError change in 1.4 breaks validation

2010-02-08 Thread Russell Morrisey
Thanks Igor,

It seems like maybe WICKET-2026 is also related:
http://issues.apache.org/jira/browse/WICKET-2026
This changes how Form#anyFormComponentError handles border components, it looks 
like, but also switches us to a FormComponent visitor.

Will it be helpful if I create a new JIRA issue?

RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Monday, February 08, 2010 1:20 PM
To: users@wicket.apache.org
Cc: Juergen Donnerstag
Subject: Re: Form#anyComponentError change in 1.4 breaks validation

Juergen,

do you remember what the problem was taking out the instanceof checks
for Form and FormComponent? i dont see why they were added or why
removing them would cause problems...

seems some changes are related to WICKET-2202

cheers
-igor

On Mon, Feb 8, 2010 at 9:14 AM, Russell Morrisey
 wrote:
> We are in the process of upgrading our application from wicket 1.3 to 1.4.5. 
> There were a lot of minor changes due to the generics-related code changes, 
> but for the most part the upgrade has been smooth. One big problem we've 
> recently come across:
>
> Form#anyComponentError was changed in this version. This is a breaking change 
> for our application, with no simple workaround provided. Please consider 
> rolling it back to the previous behavior.
>
> In the previous version of wicket, all types of components in the Form's 
> child hierarchy were checked for component.hasErrorMessage() during form 
> validation; any error registered against a component would cause a validation 
> failure. In the new version, only instances of Form or FormComponent are 
> checked; errors registered against other components are ignored.
>
> Example use case: We have a customized inmethod DataGrid (excellent 
> component!) which displays line items from a project estimate (ROM details). 
> Each line item is identified by a number of reference fields, such as the 
> Module which will be affected by the change, and the Paragraph of the spec 
> which specifies the requirements for the change. The grid has a validation 
> which ensures that a new line item isn't a duplicate (i.e., doesn't have the 
> same Module/Paragraph/etc. combination). It seems to make the most sense to 
> register the error against the DataGrid row, since the row represents the 
> line item that is a duplicate; but the new Form validation logic ignores this 
> change and saves the duplicate into the database. We want the row to detect 
> when it has a validation error registered, and show a new CSS class (marking 
> the row as invalid by making it orange) when we detect the duplicate; but it 
> doesn't make sense to ascribe the validation error to a particular 
> FormComponent on the row. I don't think the hierarchy of the datagrid permits 
> us to make the row itself a Form without extensive changes.
>
> Please let me know what you guys think. I can resend this to the dev mailing 
> list if it's more helpful, or put up a JIRA issue.
> 
>
> RUSSELL E. MORRISEY
> Programmer Analyst Professional
> Mission Solutions Engineering, LLC
>
> | russell.morri...@missionse.com | 
> www.missionse.com
> 304 West Route 38, Moorestown, NJ 08057
>
>
> 
> This is a PRIVATE message. If you are not the intended recipient, please 
> delete without copying and kindly advise us by e-mail of the mistake in 
> delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
> order or other contract unless pursuant to explicit written agreement or 
> government initiative expressly permitting the use of e-mail for such purpose.
>


This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

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



Re: Loading properties file while using Spring @L

2010-02-08 Thread Alec Swan
Igor, I looked at Salve even though James suggestion will work for my
small project.

If I understood correctly Salve is an IoC container which can
serialize objects with complex dependencies. I think this can be very
useful when serializing Wicket components that depend on DAO or other
types of services.

Thanks!

Alec

On Mon, Feb 8, 2010 at 7:08 PM, Alec Swan  wrote:
> Thanks James, this is awesome! This is what I ended up doing in my
> Wicket WebApplication object:
>
> @SpringBean(name = "myConfiguration")
> private MyConfiguration myConfiguration;
>
> protected void init() {
>        super.init();
>
>        // integrate with Spring
>        addComponentInstantiationListener(new SpringComponentInjector(this));
>        InjectorHolder.getInjector().inject(this); // injects
> @SpringBean dependencies of this object
> }
>
>
> On Mon, Feb 8, 2010 at 6:52 PM, James Carman
>  wrote:
>> You can inject anything you like that's annotated with the @SpringBean
>> annotations:
>>
>> InjectorHolder.getInjector().inject(someNonComponentObject);
>>
>> On Mon, Feb 8, 2010 at 8:46 PM, Alec Swan  wrote:
>>> Andrew, I use @SpringBean annotations in Wicket components. How do you
>>> use annotation-based approach to inject dependencies in the Wicket
>>> application object?
>>>
>>> On Mon, Feb 8, 2010 at 6:30 PM, Andrew Lombardi  
>>> wrote:
 the annotation-based approach is the most often used on that page.

 On Feb 8, 2010, at 5:28 PM, Alec Swan wrote:

> Igor, how do you inject the configuration bean in the Wicket
> application? Do you use
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
> approach?
>
> Thanks,
>
> Alec
>
> On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
> wrote:
>> i usually create a seperate bean that represents the properties and
>> let spring fill those in via the property configurer. then inject the
>> bean and you are done.
>>
>> -igor
>>
>> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
>>> Igor, were you suggesting the same approach as James did?
>>>
>>> If so, I am already using @SpringBean annotations and I am wondering
>>> if they will continue to work with the
>>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>> approach?
>>>
>>> Thanks.
>>>
>>> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>>>  wrote:
 You can use the Spring integration to actually create your application
 object for you:

 http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach

 Then, you can wire in anything into it that you want, just like any
 other Spring bean (because it *is* just another Spring bean)

 On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
> I use Wicket, Spring and wicket-spring extensions. Spring
> configuration loads properties from config/env.properties file using
> PropertyPlaceholderConfigurer. I would like to add more properties to
> this file and read them from my Wicket application class. I tried to
> inject a Spring Resource using @SpringBean annotation, but it doesn't
> work in the my Wicket application class.
>
> I am looking for recommendations on how to read properties files from
> wicket application class. Ideally I would like to use a single
> properties file read by Wicket and Spring.
>
> Thanks,
>
> Alec
>
> -
> 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
>>>
>>>
>>
>> -
>> 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 our success!

 Mystic Coders, LLC | Code Magic | www.mysticcoders.com

 ANDREW LOMBARDI | and...@mysticcoders.com
 2321 E 4th St. Ste C-128, Santa Ana CA 92705
 ofc: 714-816-4488
>>

Re: Loading properties file while using Spring @L

2010-02-08 Thread Alec Swan
Thanks James, this is awesome! This is what I ended up doing in my
Wicket WebApplication object:

@SpringBean(name = "myConfiguration")
private MyConfiguration myConfiguration;

protected void init() {
super.init();

// integrate with Spring
addComponentInstantiationListener(new SpringComponentInjector(this));
InjectorHolder.getInjector().inject(this); // injects
@SpringBean dependencies of this object
}


On Mon, Feb 8, 2010 at 6:52 PM, James Carman
 wrote:
> You can inject anything you like that's annotated with the @SpringBean
> annotations:
>
> InjectorHolder.getInjector().inject(someNonComponentObject);
>
> On Mon, Feb 8, 2010 at 8:46 PM, Alec Swan  wrote:
>> Andrew, I use @SpringBean annotations in Wicket components. How do you
>> use annotation-based approach to inject dependencies in the Wicket
>> application object?
>>
>> On Mon, Feb 8, 2010 at 6:30 PM, Andrew Lombardi  
>> wrote:
>>> the annotation-based approach is the most often used on that page.
>>>
>>> On Feb 8, 2010, at 5:28 PM, Alec Swan wrote:
>>>
 Igor, how do you inject the configuration bean in the Wicket
 application? Do you use
 http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
 approach?

 Thanks,

 Alec

 On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
 wrote:
> i usually create a seperate bean that represents the properties and
> let spring fill those in via the property configurer. then inject the
> bean and you are done.
>
> -igor
>
> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
>> Igor, were you suggesting the same approach as James did?
>>
>> If so, I am already using @SpringBean annotations and I am wondering
>> if they will continue to work with the
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>> approach?
>>
>> Thanks.
>>
>> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>>  wrote:
>>> You can use the Spring integration to actually create your application
>>> object for you:
>>>
>>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>>
>>> Then, you can wire in anything into it that you want, just like any
>>> other Spring bean (because it *is* just another Spring bean)
>>>
>>> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
 I use Wicket, Spring and wicket-spring extensions. Spring
 configuration loads properties from config/env.properties file using
 PropertyPlaceholderConfigurer. I would like to add more properties to
 this file and read them from my Wicket application class. I tried to
 inject a Spring Resource using @SpringBean annotation, but it doesn't
 work in the my Wicket application class.

 I am looking for recommendations on how to read properties files from
 wicket application class. Ideally I would like to use a single
 properties file read by Wicket and Spring.

 Thanks,

 Alec

 -
 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
>>
>>
>
> -
> 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 our success!
>>>
>>> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
>>>
>>> ANDREW LOMBARDI | and...@mysticcoders.com
>>> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
>>> ofc: 714-816-4488
>>> fax: 714-782-6024
>>> cell: 714-697-8046
>>> linked-in: http://www.linkedin.com/in/andrewlombardi
>>> twitter: http://www.twitter.com/kinabalu
>>>
>>> Eco-Tip: Printing e-mails is usually a waste.
>>>
>>> 
>>> This message is for the named person's use only. You must not, directly or 
>>> indirectly, use,
>>>  disclose, distribute, print, or copy any part of this message if you are 
>>> not the intended recipient.
>>> ==

Re: Loading properties file while using Spring @L

2010-02-08 Thread James Carman
You can inject anything you like that's annotated with the @SpringBean
annotations:

InjectorHolder.getInjector().inject(someNonComponentObject);

On Mon, Feb 8, 2010 at 8:46 PM, Alec Swan  wrote:
> Andrew, I use @SpringBean annotations in Wicket components. How do you
> use annotation-based approach to inject dependencies in the Wicket
> application object?
>
> On Mon, Feb 8, 2010 at 6:30 PM, Andrew Lombardi  
> wrote:
>> the annotation-based approach is the most often used on that page.
>>
>> On Feb 8, 2010, at 5:28 PM, Alec Swan wrote:
>>
>>> Igor, how do you inject the configuration bean in the Wicket
>>> application? Do you use
>>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>> approach?
>>>
>>> Thanks,
>>>
>>> Alec
>>>
>>> On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
>>> wrote:
 i usually create a seperate bean that represents the properties and
 let spring fill those in via the property configurer. then inject the
 bean and you are done.

 -igor

 On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
> Igor, were you suggesting the same approach as James did?
>
> If so, I am already using @SpringBean annotations and I am wondering
> if they will continue to work with the
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
> approach?
>
> Thanks.
>
> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>  wrote:
>> You can use the Spring integration to actually create your application
>> object for you:
>>
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>
>> Then, you can wire in anything into it that you want, just like any
>> other Spring bean (because it *is* just another Spring bean)
>>
>> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
>>> I use Wicket, Spring and wicket-spring extensions. Spring
>>> configuration loads properties from config/env.properties file using
>>> PropertyPlaceholderConfigurer. I would like to add more properties to
>>> this file and read them from my Wicket application class. I tried to
>>> inject a Spring Resource using @SpringBean annotation, but it doesn't
>>> work in the my Wicket application class.
>>>
>>> I am looking for recommendations on how to read properties files from
>>> wicket application class. Ideally I would like to use a single
>>> properties file read by Wicket and Spring.
>>>
>>> Thanks,
>>>
>>> Alec
>>>
>>> -
>>> 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
>
>

 -
 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 our success!
>>
>> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
>>
>> ANDREW LOMBARDI | and...@mysticcoders.com
>> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
>> ofc: 714-816-4488
>> fax: 714-782-6024
>> cell: 714-697-8046
>> linked-in: http://www.linkedin.com/in/andrewlombardi
>> twitter: http://www.twitter.com/kinabalu
>>
>> Eco-Tip: Printing e-mails is usually a waste.
>>
>> 
>> This message is for the named person's use only. You must not, directly or 
>> indirectly, use,
>>  disclose, distribute, print, or copy any part of this message if you are 
>> not the intended recipient.
>> 
>>
>>
>
> -
> 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: Loading properties file while using Spring @L

2010-02-08 Thread Alec Swan
Andrew, I use @SpringBean annotations in Wicket components. How do you
use annotation-based approach to inject dependencies in the Wicket
application object?

On Mon, Feb 8, 2010 at 6:30 PM, Andrew Lombardi  wrote:
> the annotation-based approach is the most often used on that page.
>
> On Feb 8, 2010, at 5:28 PM, Alec Swan wrote:
>
>> Igor, how do you inject the configuration bean in the Wicket
>> application? Do you use
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>> approach?
>>
>> Thanks,
>>
>> Alec
>>
>> On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
>> wrote:
>>> i usually create a seperate bean that represents the properties and
>>> let spring fill those in via the property configurer. then inject the
>>> bean and you are done.
>>>
>>> -igor
>>>
>>> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
 Igor, were you suggesting the same approach as James did?

 If so, I am already using @SpringBean annotations and I am wondering
 if they will continue to work with the
 http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
 approach?

 Thanks.

 On Mon, Feb 8, 2010 at 4:41 AM, James Carman
  wrote:
> You can use the Spring integration to actually create your application
> object for you:
>
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>
> Then, you can wire in anything into it that you want, just like any
> other Spring bean (because it *is* just another Spring bean)
>
> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
>> I use Wicket, Spring and wicket-spring extensions. Spring
>> configuration loads properties from config/env.properties file using
>> PropertyPlaceholderConfigurer. I would like to add more properties to
>> this file and read them from my Wicket application class. I tried to
>> inject a Spring Resource using @SpringBean annotation, but it doesn't
>> work in the my Wicket application class.
>>
>> I am looking for recommendations on how to read properties files from
>> wicket application class. Ideally I would like to use a single
>> properties file read by Wicket and Spring.
>>
>> Thanks,
>>
>> Alec
>>
>> -
>> 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


>>>
>>> -
>>> 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 our success!
>
> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
>
> ANDREW LOMBARDI | and...@mysticcoders.com
> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> ofc: 714-816-4488
> fax: 714-782-6024
> cell: 714-697-8046
> linked-in: http://www.linkedin.com/in/andrewlombardi
> twitter: http://www.twitter.com/kinabalu
>
> Eco-Tip: Printing e-mails is usually a waste.
>
> 
> This message is for the named person's use only. You must not, directly or 
> indirectly, use,
>  disclose, distribute, print, or copy any part of this message if you are not 
> the intended recipient.
> 
>
>

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



Re: Loading properties file while using Spring @L

2010-02-08 Thread Igor Vaynberg
personally, i use salve (salve.googlecode.com) so i can inject into
any object...

-igor

On Mon, Feb 8, 2010 at 5:28 PM, Alec Swan  wrote:
> Igor, how do you inject the configuration bean in the Wicket
> application? Do you use
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
> approach?
>
> Thanks,
>
> Alec
>
> On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
> wrote:
>> i usually create a seperate bean that represents the properties and
>> let spring fill those in via the property configurer. then inject the
>> bean and you are done.
>>
>> -igor
>>
>> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
>>> Igor, were you suggesting the same approach as James did?
>>>
>>> If so, I am already using @SpringBean annotations and I am wondering
>>> if they will continue to work with the
>>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>> approach?
>>>
>>> Thanks.
>>>
>>> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>>>  wrote:
 You can use the Spring integration to actually create your application
 object for you:

 http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach

 Then, you can wire in anything into it that you want, just like any
 other Spring bean (because it *is* just another Spring bean)

 On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
> I use Wicket, Spring and wicket-spring extensions. Spring
> configuration loads properties from config/env.properties file using
> PropertyPlaceholderConfigurer. I would like to add more properties to
> this file and read them from my Wicket application class. I tried to
> inject a Spring Resource using @SpringBean annotation, but it doesn't
> work in the my Wicket application class.
>
> I am looking for recommendations on how to read properties files from
> wicket application class. Ideally I would like to use a single
> properties file read by Wicket and Spring.
>
> Thanks,
>
> Alec
>
> -
> 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
>>>
>>>
>>
>> -
>> 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: Loading properties file while using Spring @L

2010-02-08 Thread Andrew Lombardi
the annotation-based approach is the most often used on that page.

On Feb 8, 2010, at 5:28 PM, Alec Swan wrote:

> Igor, how do you inject the configuration bean in the Wicket
> application? Do you use
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
> approach?
> 
> Thanks,
> 
> Alec
> 
> On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  
> wrote:
>> i usually create a seperate bean that represents the properties and
>> let spring fill those in via the property configurer. then inject the
>> bean and you are done.
>> 
>> -igor
>> 
>> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
>>> Igor, were you suggesting the same approach as James did?
>>> 
>>> If so, I am already using @SpringBean annotations and I am wondering
>>> if they will continue to work with the
>>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>> approach?
>>> 
>>> Thanks.
>>> 
>>> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>>>  wrote:
 You can use the Spring integration to actually create your application
 object for you:
 
 http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
 
 Then, you can wire in anything into it that you want, just like any
 other Spring bean (because it *is* just another Spring bean)
 
 On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
> I use Wicket, Spring and wicket-spring extensions. Spring
> configuration loads properties from config/env.properties file using
> PropertyPlaceholderConfigurer. I would like to add more properties to
> this file and read them from my Wicket application class. I tried to
> inject a Spring Resource using @SpringBean annotation, but it doesn't
> work in the my Wicket application class.
> 
> I am looking for recommendations on how to read properties files from
> wicket application class. Ideally I would like to use a single
> properties file read by Wicket and Spring.
> 
> Thanks,
> 
> Alec
> 
> -
> 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
>>> 
>>> 
>> 
>> -
>> 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 our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




Re: Loading properties file while using Spring @L

2010-02-08 Thread Alec Swan
Igor, how do you inject the configuration bean in the Wicket
application? Do you use
http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
approach?

Thanks,

Alec

On Mon, Feb 8, 2010 at 10:33 AM, Igor Vaynberg  wrote:
> i usually create a seperate bean that represents the properties and
> let spring fill those in via the property configurer. then inject the
> bean and you are done.
>
> -igor
>
> On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
>> Igor, were you suggesting the same approach as James did?
>>
>> If so, I am already using @SpringBean annotations and I am wondering
>> if they will continue to work with the
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>> approach?
>>
>> Thanks.
>>
>> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>>  wrote:
>>> You can use the Spring integration to actually create your application
>>> object for you:
>>>
>>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>>
>>> Then, you can wire in anything into it that you want, just like any
>>> other Spring bean (because it *is* just another Spring bean)
>>>
>>> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
 I use Wicket, Spring and wicket-spring extensions. Spring
 configuration loads properties from config/env.properties file using
 PropertyPlaceholderConfigurer. I would like to add more properties to
 this file and read them from my Wicket application class. I tried to
 inject a Spring Resource using @SpringBean annotation, but it doesn't
 work in the my Wicket application class.

 I am looking for recommendations on how to read properties files from
 wicket application class. Ideally I would like to use a single
 properties file read by Wicket and Spring.

 Thanks,

 Alec

 -
 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
>>
>>
>
> -
> 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: Wicket Layout

2010-02-08 Thread Lionel Armanet

Hello,

You can find an example of a jQuery layout plugin (this one:
http://layout.jquery-dev.net/) in the wiQuery project.

If you go visit wiQuery's google code (http://code.google.com/p/wiquery),
you'd find under our svn (in /svn/examples/wiquery-presentation-examples) a
taskboard application with a border layout plugin.

Hope this helps,


kinabalu wrote:
> 
> might look at some of the integrations with jquery or yui.  I believe both
> of those frameworks have something similar, and I'd guess the respective
> wicket projects working on integration have them, or could be added.
> 
> i don't know enough about dojo though, sorry
> 
> On Feb 7, 2010, at 10:09 PM, Josh Kamau wrote:
> 
>> Andrew ;
>> 
>> How about the splitPanel ?  and the accordion?
>> 
>> On Mon, Feb 8, 2010 at 9:01 AM, Andrew Lombardi
>> wrote:
>> 
>>> it's definitely an involved layout ... but nothing here looks out of the
>>> question.
>>> 
>>> tabbedpanel's for Inbox | Contacts
>>> the tree from wicket-extensions for the folder viewer
>>> the datatable from wicket-extensions for the lsit of messages
>>> there are modal windows, all available
>>> 
>>> so yes, wicket should be able to support this.  not sure about the dojo
>>> integration
>>> 
>>> On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote:
>>> 
 Hi guys;
 
 I think wicket is the best java web framework out there. However , i
>>> really
 would like be to able to create a layout like this :
 http://demos.dojotoolkit.org/demos/mail/
 
 Does the current dojo integration support this. Is it possible to
 create
 such a layout with vanilla  wicket?
 
 regards.
 
 Josh
>>> 
>>> 
>>> To our success!
>>> 
>>> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
>>> 
>>> ANDREW LOMBARDI | and...@mysticcoders.com
>>> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
>>> ofc: 714-816-4488
>>> fax: 714-782-6024
>>> cell: 714-697-8046
>>> linked-in: http://www.linkedin.com/in/andrewlombardi
>>> twitter: http://www.twitter.com/kinabalu
>>> 
>>> Eco-Tip: Printing e-mails is usually a waste.
>>> 
>>> 
>>> This message is for the named person's use only. You must not, directly
>>> or
>>> indirectly, use,
>>> disclose, distribute, print, or copy any part of this message if you are
>>> not the intended recipient.
>>> 
>>> 
>>> 
> 
> 
> To our success!
> 
> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> 
> ANDREW LOMBARDI | and...@mysticcoders.com
> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> ofc: 714-816-4488
> fax: 714-782-6024
> cell: 714-697-8046
> linked-in: http://www.linkedin.com/in/andrewlombardi
> twitter: http://www.twitter.com/kinabalu
> 
> Eco-Tip: Printing e-mails is usually a waste.
> 
> 
> This message is for the named person's use only. You must not, directly or
> indirectly, use,
>  disclose, distribute, print, or copy any part of this message if you are
> not the intended recipient.
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Wicket-Layout-tp27495561p27509045.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



Wicket Tabbed Panel "without Markup"

2010-02-08 Thread Martin Makundi
Hi!

Got a bit carried away with this new thang ;)
http://old.nabble.com/Wicket-without-markup-td27506286.html

It's finally fun adding components onto a page/panel!

I had a go at creating a Tabbed panel with it and it's pretty neat:

HomePage.html:


Wicket Quickstart Archetype Homepage


Wicket Quickstart Archetype Homepage







public class HomePage extends WebPage implements ITabbedPanelTarget {
/** */
private static final long serialVersionUID = 1L;
private final MarkupNoLongerRequiredContainer rootContainer;
private final MarkupNoLongerRequiredContainer row0;
private final MarkupNoLongerRequiredContainer row1;
private final MarkupNoLongerRequiredContainer row2;
private final MarkupNoLongerRequiredContainer row3;
private final Form form;
private final TabbedPanelTab firstTab;
private final MarkupNoLongerRequiredContainer tabContainer;
private Panel selectedTab;

/**
 *
 */
public HomePage() {
add(form = new Form("form"));
form.add(rootContainer = new
MarkupNoLongerRequiredContainer("root-content-id"));
{
rootContainer.add(row0 = new 
MarkupNoLongerRequiredContainer());
row0.add(firstTab = new TabbedPanelTab(this, 
Model.of("First"),
FirstPanel.class));
row0.add(new TabbedPanelTab(this, Model.of("Second"), 
SecondPanel.class));
row0.add(new TabbedPanelTab(this, Model.of("Third"), 
ThirdPanel.class));
}
{
rootContainer.add(row1 = new 
MarkupNoLongerRequiredContainer());
row1.add(new Label(GID, "Hello world"));
row1.add(0, new Label(GID, 
"").setEscapeModelStrings(false));
// Change row before
row1.add(0, new Label(GID, 
"").setEscapeModelStrings(false));
// Change row twice before
row1.add(new Label(GID, 
"").setEscapeModelStrings(false)); //
Change row once after
}
{
rootContainer.add(row2 = new 
MarkupNoLongerRequiredContainer());
row2.add(new Label(GID, "Type your name here:"));
row2.add(new InputField(new TextField(GID, 
Model.of("...";
}
{
rootContainer.add(row3 = new 
MarkupNoLongerRequiredContainer());
row3.add(new Label(GID, 
"").setEscapeModelStrings(false)); //
Change row before
row3.add(new InputField(new Button(GID, 
Model.of("Clickme")) {
@Override
protected void onComponentTag(ComponentTag tag) 
{
tag.put("type", "button");
super.onComponentTag(tag);
}
}));
row3.add(new Label(GID, 
"").setEscapeModelStrings(false)); //
Change row before
row3.add(tabContainer = new 
MarkupNoLongerRequiredContainer());
}

firstTab.select();
}

public Component getSelectedTab() {
return selectedTab;
}

public void setSelectedTabAndPanel(Panel selectedTab, Panel 
newInstance) {
this.selectedTab = selectedTab;
tabContainer.set(0, newInstance);
}
}



public class TabbedPanelTab extends Panel {
/** */
private static final long serialVersionUID = -6602527646776083146L;
private final Link link;
private final ITabbedPanelTarget tabbedPanelTarget;
private final Class panelClass;

/**
 * @param tabbedPanelTarget
 * @param title
 */
public TabbedPanelTab(final ITabbedPanelTarget tabbedPanelTarget,
Model title, final Class panelClass) {
super(GID);
this.tabbedPanelTarget = tabbedPanelTarget;
this.panelClass = panelClass;
add(link = new Link("tab-link") {
@Override
public void onClick() {
select();
}

@Override
public boolean isEnabled() {
return !(tabbedPanelTarget.getSelectedTab() == 
TabbedPanelTab.this);
}
});
link.add(new Label("title", title));
}

/**
 */
public void select() {
try {

tabbedPanelTarget.setSelectedTabAndPanel(TabbedPanelTab.this,
panelClass.getConstructor(String.class).newInstance(GID));
} catch (Exception e)

Re: Wicket Layout

2010-02-08 Thread Ernesto Reinaldo Barreiro
Hi,

I have put the code for creating a jquery based layout in here

http://code.google.com/p/wijqgrid/source/browse/#svn/trunk/wijqgrid/src/main/java/com/jquery/layout

The
result can be seen here

http://code.google.com/p/wijqgrid/wiki/ScreenShots

Best,

Ernesto

On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau  wrote:

> Hi guys;
>
> I think wicket is the best java web framework out there. However , i really
> would like be to able to create a layout like this :
> http://demos.dojotoolkit.org/demos/mail/
>
> Does the current dojo integration support this. Is it possible to create
> such a layout with vanilla  wicket?
>
> regards.
>
> Josh
>


Wicket without markup

2010-02-08 Thread Martin Makundi
Hi!

I finally came up with something that I have been looking for. It
might be more suitable for Wicket 1.5 because it's not very compatible
(read: not very lean) with current wicket:

Wicket Without Markup ;)

Well, yes there is markup for each component, but when you lay them
out on the page, the markup is component-contained.
So coding an application feels like a breeze for the Java developer,
and the HTML developer can strictly stick to styling the (contained)
components themselves.

Maybe I omitted something, but here comes the example. Let me know
what you think. Does it inspire any fresh ideas in you? Is this an old
idea? I recall listviews having been mentioned once as a solution for
producing markup-less code ... maybe I have re-invented the weel or
something.

HomePage.html:


Wicket Quickstart Archetype Homepage







HomePage.java:
public class HomePage extends WebPage {
/** */
private static final long serialVersionUID = 1L;
private final MarkupNoLongerRequiredContainer rootContainer;
private final MarkupNoLongerRequiredContainer row1;
private final MarkupNoLongerRequiredContainer row2;
private final MarkupNoLongerRequiredContainer row3;
private final Form form;

/**
 *
 */
public HomePage() {
add(form = new Form("form"));
form.add(rootContainer = new
MarkupNoLongerRequiredContainer("root-content-id"));
{
rootContainer.add(row1 = new 
MarkupNoLongerRequiredContainer());
row1.add(new Label(GID, "Hello world"));
row1.add(0, new Label(GID, 
"").setEscapeModelStrings(false));
// Change row before
row1.add(0, new Label(GID, 
"").setEscapeModelStrings(false));
// Change row twice before
row1.add(new Label(GID, 
"").setEscapeModelStrings(false)); //
Change row once after
}
{
rootContainer.add(row2 = new 
MarkupNoLongerRequiredContainer());
row2.add(new Label(GID, "Type your name here:"));
row2.add(new InputField(new TextField(GID, 
Model.of("...";
}
{
rootContainer.add(row3 = new 
MarkupNoLongerRequiredContainer());
row2.add(new Label(GID, 
"").setEscapeModelStrings(false)); //
Change row before
row2.add(new InputField(new Button(GID, 
Model.of("Clickme")) {
@Override
protected void onComponentTag(ComponentTag tag) 
{
tag.put("type", "button");
super.onComponentTag(tag);
}
}));
}
}
}

InputField.html:

  



InputField.java:
public class InputField extends Panel {
/** */
private static final long serialVersionUID = 1L;

public > InputField(InputFieldType
inputFieldType) {
super(MarkupNoLongerRequiredContainer.GID);
add(inputFieldType);
}
}

MarkupNoLongerRequiredContainer.html:

  






MarkupNoLongerRequiredContainer.java:
public class MarkupNoLongerRequiredContainer extends Panel {
/** */
public static final String GID = "generic-child-id";

/** */
private static final long serialVersionUID = 1L;

private final List children = new ArrayList();

public MarkupNoLongerRequiredContainer() {
this(GID);
}

@Override
protected void onBeforeRender() {
super.onBeforeRender();
}

/**
 * @param id
 */
public MarkupNoLongerRequiredContainer(String id) {
super(id);
super.add(new ListView("listview-id", children) {
/** */
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItem 
listItem) {
Component component = listItem.getModelObject();
if (!component.getId().equals(GID)) {
throw new 
IllegalStateException("Currently handles only children
with id " + GID);
}
listItem.add(component);
}
});
}

public boolean add(Component component) {
return children.add(component);
}

public void add(int index, Component element) {
children.add(index, element);
}

public boolean addAll(Collection collection) {
  

Re: Wicket RAD project

2010-02-08 Thread wfaler

Hi,
I'm the author of the project, and I'd say the answer to that is "yes and
no":

Yes:
The code has been maintained and bug fixed in SVN, and should work without
any kinks with the latest stable 1.4.x versions of Wicket.
I use the project myself on all Wicket projects that I start.

No:
Being the sole maintainer, I've been a bit sloppy with making releases and
documenting - the best approach is to get the latest version from SVN, with
the caveat that the examples-project is currently broken.

..and finally, a correction on some misconceptions in this thread:
There is no code generation with Wicket RAD - everything is just driven by
either composition, annotation metadata or a combination of them.



Josh Kamau wrote:
> 
> Hi team;
> 
> Just wondering, is Wicket RAD project still alive ?
> 
> http://sites.google.com/site/wicketrad/
> 
> 
> Best regards.
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Wicket-RAD-project-tp27499042p27505996.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: feedback message

2010-02-08 Thread Martin Grigorov
feedbackPanel.setEscapeModelStrings(false)

for more advanced customizations you'll have to override method 

protected Component newMessageDisplayComponent(String id,
FeedbackMessage message)

On Mon, 2010-02-08 at 11:56 -0800, Swarnim Ranjitkar wrote:
> Is there a way to tell feedbackpanel not to encode my string eg
> error("test ");
> thank you
> 
> 



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



Re: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread Igor Racic
Hi,

>> http://www.cafepress.com/apachewicket.317298148
Just as info, not related to thread - when you change to EURO price is still
in $ (at least on FF 3.0.15)

Regards,
Igor


2010/2/2 nino martinez wael 

> Hi
>
> Someone mentioned that we could have a better look & feel for wicket, since
> there are no designers in the core team. I proposed a contest, to make the
> coolest slickest css for wicket. So please feel free to apply.
>
>
> Requirements:
>
> your css should be compatible with the basic browsers, Firefox , IE ,
> Safari
> etc. And retain heavy use of embedded js. And it should be a drop on, using
> existing id's & hierachy for design.
>
> Practical info:
>
> The contest ends in 2 months April 2nd.
>
> Get the wicket examples here:
> http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/
>
> If you need it you can put your css in svn at wicketstuff, write to this
> list for details on howto get commit rights, you should add your css to
> sandbox and sf user name (
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/ ).
>
> Yes as with all contest there is a prize, you can win the wicket t-shir
> along with the honor if your css are the winner. This
> http://www.cafepress.com/apachewicket.317298148 or this
> http://www.cafepress.com/apachewicket.317298083 depending on your age :)
>
> Just reply to this thread to enter the contest.
>
> Regards Nino on behalf of the Wicket People
>


feedback message

2010-02-08 Thread Swarnim Ranjitkar

Is there a way to tell feedbackpanel not to encode my string eg
error("test ");
thank you

  

Re: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread Peter Jones
My username is "superpaj".  I think I'm following you.  I'll holler if I
have any questions.

Thanks
Pete

On Mon, Feb 8, 2010 at 12:50 PM, Igor Vaynberg wrote:

> as long as whatever it is you do can be applied as a patch...
>
> -igor
>
> On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael
>  wrote:
> > just post your sourceforge username... I'll give you access to store
> things
> > in svn..
> >
> > So you checkout wicketexamples from apache.. Disconnect it apply your
> design
> > stuff, and can store it at sourceforge in sandbox under your sf name.
> Okay?
> >
> > 2010/2/8 Peter Jones 
> >
> >> Hi,
> >>
> >> I'm excited by this idea for two reasons: 1) it would be a good design
> >> exercise and 2) it might help out the Wicket cause... Oh, and 3) I
> suspect
> >> my wife would look hot in a Wicket T-shirt!
> >>
> >> I'm not promising anything - we've got a big release mid-March (yes,
> we're
> >> using Wicket) - but I'd like to get commit rights just in case; what do
> I
> >> need to do?
> >>
> >> Thanks,
> >> Pete
> >>
> >> On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael <
> >> nino.martinez.w...@gmail.com> wrote:
> >>
> >> > I agree, and the contest are about Wicket Examples not the quickstart.
> >> >
> >> > 2010/2/8 Martijn Dashorst 
> >> >
> >> > > I don't like to add more bells and whistles to the quickstart. If we
> >> > > add graphics, JS and other stuff, you'd have to remove it for every
> >> > > project. I like the fact that I can grab the quickstart and just
> start
> >> > > hacking without having to strip it from superfluous muck.
> >> > >
> >> > > I do like the changes Kinabalu proposed though: simple, low profile
> >> > > and removed easily enough.
> >> > >
> >> > > Martijn
> >> > >
> >> > > On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
> >> > >  wrote:
> >> > > > Design as in graphical. While I do think the changes you made are
> >> > equally
> >> > > > important.
> >> > > >
> >> > > > The graphical perspective was what begun the contest. It would'nt
> >> > > certainly
> >> > > > not hurt that the quickstart or the examples looked more slick.
> >> However
> >> > > any
> >> > > > out come are a win-win.
> >> > > >
> >> > > > regards Nino
> >> > > >
> >> > > > 2010/2/8 Andrew Lombardi 
> >> > > >
> >> > > >> Design as in programming?  or design as in graphical?
> >> > > >>
> >> > > >> I think the intent I gathered from mbrictson was to put a
> semi-nicer
> >> > > look
> >> > > >> on a plain page, and provide useful links for new folks.  Things
> >> like
> >> > > the
> >> > > >> examples which should be perused a lot while first learning
> Wicket.
> >> > > >>
> >> > > >> It's a quickstart, it should take on a tone of simplicity.  Just
> >> like
> >> > > the
> >> > > >> Django quickstart, which doesn't aim to do anything other than
> shove
> >> > you
> >> > > in
> >> > > >> the right direction
> >> > > >>
> >> > > >> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
> >> > > >>
> >> > > >> > Yeah I know. But some would probably use it as a starting point
> in
> >> > > design
> >> > > >> as
> >> > > >> > well.
> >> > > >> >
> >> > > >> > 2010/2/7 Andrew Lombardi 
> >> > > >> >
> >> > > >> >> This isn't a modification for all the wicket examples, this is
> >> just
> >> > > for
> >> > > >> the
> >> > > >> >> maven archetype, the examples are a much larger undertaking.
> >> > > >> >>
> >> > > >> >> Focus here was to make it simple, and provide some references
> >> that
> >> > > >> people
> >> > > >> >> could find useful.  There's no reason to extrapolate out and
> >> design
> >> > a
> >> > > >> crazy
> >> > > >> >> quickstart page because it will be deleted pretty quickly (we
> >> hope)
> >> > > >> >>
> >> > > >> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
> >> > > >> >>
> >> > > >> >>> Great. We need more people though to make it a real contest!
> :)
> >> > And
> >> > > >> more
> >> > > >> >>> focus on looks.
> >> > > >> >>>
> >> > > >> >>> 2010/2/6 Andrew Lombardi 
> >> > > >> >>>
> >> > > >>  I agree.  I had a few moments tonight and put this together.
> >>  It
> >> > > >> >> includes
> >> > > >>  the standard wicket label "message" showing that Wicket is
> >> > parsing
> >> > > >> >> properly.
> >> > > >> 
> >> > > >>  It also includes links to: examples, javadoc, books about
> >> wicket,
> >> > > and
> >> > > >>  blogs.  and will show the version you used to install from
> >> > > archetype.
> >> > > >> 
> >> > > >>  Thoughts?  You can click through on the bug and see an
> attached
> >> > > >> >> screenshot
> >> > > >> 
> >> > > >>  https://issues.apache.org/jira/browse/WICKET-2724
> >> > > >> 
> >> > > >>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
> >> > > >> 
> >> > > >> >
> >> > > >> > In addition to the examples, I think it would be nice to
> apply
> >> a
> >> > > >> >> pleasant
> >> > > >>  CSS
> >> > > >> > skin to the Wicket quickstart archetype. Instead of an
> >> un-styled
> >> > > >> > 

Re: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread Igor Vaynberg
as long as whatever it is you do can be applied as a patch...

-igor

On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael
 wrote:
> just post your sourceforge username... I'll give you access to store things
> in svn..
>
> So you checkout wicketexamples from apache.. Disconnect it apply your design
> stuff, and can store it at sourceforge in sandbox under your sf name. Okay?
>
> 2010/2/8 Peter Jones 
>
>> Hi,
>>
>> I'm excited by this idea for two reasons: 1) it would be a good design
>> exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect
>> my wife would look hot in a Wicket T-shirt!
>>
>> I'm not promising anything - we've got a big release mid-March (yes, we're
>> using Wicket) - but I'd like to get commit rights just in case; what do I
>> need to do?
>>
>> Thanks,
>> Pete
>>
>> On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>>
>> > I agree, and the contest are about Wicket Examples not the quickstart.
>> >
>> > 2010/2/8 Martijn Dashorst 
>> >
>> > > I don't like to add more bells and whistles to the quickstart. If we
>> > > add graphics, JS and other stuff, you'd have to remove it for every
>> > > project. I like the fact that I can grab the quickstart and just start
>> > > hacking without having to strip it from superfluous muck.
>> > >
>> > > I do like the changes Kinabalu proposed though: simple, low profile
>> > > and removed easily enough.
>> > >
>> > > Martijn
>> > >
>> > > On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
>> > >  wrote:
>> > > > Design as in graphical. While I do think the changes you made are
>> > equally
>> > > > important.
>> > > >
>> > > > The graphical perspective was what begun the contest. It would'nt
>> > > certainly
>> > > > not hurt that the quickstart or the examples looked more slick.
>> However
>> > > any
>> > > > out come are a win-win.
>> > > >
>> > > > regards Nino
>> > > >
>> > > > 2010/2/8 Andrew Lombardi 
>> > > >
>> > > >> Design as in programming?  or design as in graphical?
>> > > >>
>> > > >> I think the intent I gathered from mbrictson was to put a semi-nicer
>> > > look
>> > > >> on a plain page, and provide useful links for new folks.  Things
>> like
>> > > the
>> > > >> examples which should be perused a lot while first learning Wicket.
>> > > >>
>> > > >> It's a quickstart, it should take on a tone of simplicity.  Just
>> like
>> > > the
>> > > >> Django quickstart, which doesn't aim to do anything other than shove
>> > you
>> > > in
>> > > >> the right direction
>> > > >>
>> > > >> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
>> > > >>
>> > > >> > Yeah I know. But some would probably use it as a starting point in
>> > > design
>> > > >> as
>> > > >> > well.
>> > > >> >
>> > > >> > 2010/2/7 Andrew Lombardi 
>> > > >> >
>> > > >> >> This isn't a modification for all the wicket examples, this is
>> just
>> > > for
>> > > >> the
>> > > >> >> maven archetype, the examples are a much larger undertaking.
>> > > >> >>
>> > > >> >> Focus here was to make it simple, and provide some references
>> that
>> > > >> people
>> > > >> >> could find useful.  There's no reason to extrapolate out and
>> design
>> > a
>> > > >> crazy
>> > > >> >> quickstart page because it will be deleted pretty quickly (we
>> hope)
>> > > >> >>
>> > > >> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
>> > > >> >>
>> > > >> >>> Great. We need more people though to make it a real contest! :)
>> > And
>> > > >> more
>> > > >> >>> focus on looks.
>> > > >> >>>
>> > > >> >>> 2010/2/6 Andrew Lombardi 
>> > > >> >>>
>> > > >>  I agree.  I had a few moments tonight and put this together.
>>  It
>> > > >> >> includes
>> > > >>  the standard wicket label "message" showing that Wicket is
>> > parsing
>> > > >> >> properly.
>> > > >> 
>> > > >>  It also includes links to: examples, javadoc, books about
>> wicket,
>> > > and
>> > > >>  blogs.  and will show the version you used to install from
>> > > archetype.
>> > > >> 
>> > > >>  Thoughts?  You can click through on the bug and see an attached
>> > > >> >> screenshot
>> > > >> 
>> > > >>  https://issues.apache.org/jira/browse/WICKET-2724
>> > > >> 
>> > > >>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
>> > > >> 
>> > > >> >
>> > > >> > In addition to the examples, I think it would be nice to apply
>> a
>> > > >> >> pleasant
>> > > >>  CSS
>> > > >> > skin to the Wicket quickstart archetype. Instead of an
>> un-styled
>> > > >> > "QuickStart" message, how about a nicely formatted short intro
>> > > with
>> > > >> >> links
>> > > >>  to
>> > > >> > tutorials, reference documentation, etc.?
>> > > >> >
>> > > >> > As an example, I like the "it worked!" welcome page that
>> Django
>> > > >> >> provides:
>> > > >> >
>> > > >> > http://i46.tinypic.com/2q025g9.jpg
>> > > >> >
>> > > >> >
>> > > >> > nino martinez wael wrote:
>> > > >> >>
>> > > >> >> H

Re: Example for Combobox wanted

2010-02-08 Thread nino martinez wael
Yes it's possible, just make a panel with a drop down and textfield, and
ajax enable both.. It should be simple.. Have you checked the wicket
examples?

2010/2/8 Peter Diefenthaeler 

>
> Hi,
> I'm looking for an example of a ComboBox which is a combination of a
> textfield and DropDownChoice.
> It should be possible to type in a new value and submit it, or to select
> from the values in the DropDownChoice and submit it.
> The AJAX autocomplete example seems to be good, but you have to type in one
> character to get a choice ...
> Thanks, Peter
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread nino martinez wael
just post your sourceforge username... I'll give you access to store things
in svn..

So you checkout wicketexamples from apache.. Disconnect it apply your design
stuff, and can store it at sourceforge in sandbox under your sf name. Okay?

2010/2/8 Peter Jones 

> Hi,
>
> I'm excited by this idea for two reasons: 1) it would be a good design
> exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect
> my wife would look hot in a Wicket T-shirt!
>
> I'm not promising anything - we've got a big release mid-March (yes, we're
> using Wicket) - but I'd like to get commit rights just in case; what do I
> need to do?
>
> Thanks,
> Pete
>
> On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
> > I agree, and the contest are about Wicket Examples not the quickstart.
> >
> > 2010/2/8 Martijn Dashorst 
> >
> > > I don't like to add more bells and whistles to the quickstart. If we
> > > add graphics, JS and other stuff, you'd have to remove it for every
> > > project. I like the fact that I can grab the quickstart and just start
> > > hacking without having to strip it from superfluous muck.
> > >
> > > I do like the changes Kinabalu proposed though: simple, low profile
> > > and removed easily enough.
> > >
> > > Martijn
> > >
> > > On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
> > >  wrote:
> > > > Design as in graphical. While I do think the changes you made are
> > equally
> > > > important.
> > > >
> > > > The graphical perspective was what begun the contest. It would'nt
> > > certainly
> > > > not hurt that the quickstart or the examples looked more slick.
> However
> > > any
> > > > out come are a win-win.
> > > >
> > > > regards Nino
> > > >
> > > > 2010/2/8 Andrew Lombardi 
> > > >
> > > >> Design as in programming?  or design as in graphical?
> > > >>
> > > >> I think the intent I gathered from mbrictson was to put a semi-nicer
> > > look
> > > >> on a plain page, and provide useful links for new folks.  Things
> like
> > > the
> > > >> examples which should be perused a lot while first learning Wicket.
> > > >>
> > > >> It's a quickstart, it should take on a tone of simplicity.  Just
> like
> > > the
> > > >> Django quickstart, which doesn't aim to do anything other than shove
> > you
> > > in
> > > >> the right direction
> > > >>
> > > >> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
> > > >>
> > > >> > Yeah I know. But some would probably use it as a starting point in
> > > design
> > > >> as
> > > >> > well.
> > > >> >
> > > >> > 2010/2/7 Andrew Lombardi 
> > > >> >
> > > >> >> This isn't a modification for all the wicket examples, this is
> just
> > > for
> > > >> the
> > > >> >> maven archetype, the examples are a much larger undertaking.
> > > >> >>
> > > >> >> Focus here was to make it simple, and provide some references
> that
> > > >> people
> > > >> >> could find useful.  There's no reason to extrapolate out and
> design
> > a
> > > >> crazy
> > > >> >> quickstart page because it will be deleted pretty quickly (we
> hope)
> > > >> >>
> > > >> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
> > > >> >>
> > > >> >>> Great. We need more people though to make it a real contest! :)
> > And
> > > >> more
> > > >> >>> focus on looks.
> > > >> >>>
> > > >> >>> 2010/2/6 Andrew Lombardi 
> > > >> >>>
> > > >>  I agree.  I had a few moments tonight and put this together.
>  It
> > > >> >> includes
> > > >>  the standard wicket label "message" showing that Wicket is
> > parsing
> > > >> >> properly.
> > > >> 
> > > >>  It also includes links to: examples, javadoc, books about
> wicket,
> > > and
> > > >>  blogs.  and will show the version you used to install from
> > > archetype.
> > > >> 
> > > >>  Thoughts?  You can click through on the bug and see an attached
> > > >> >> screenshot
> > > >> 
> > > >>  https://issues.apache.org/jira/browse/WICKET-2724
> > > >> 
> > > >>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
> > > >> 
> > > >> >
> > > >> > In addition to the examples, I think it would be nice to apply
> a
> > > >> >> pleasant
> > > >>  CSS
> > > >> > skin to the Wicket quickstart archetype. Instead of an
> un-styled
> > > >> > "QuickStart" message, how about a nicely formatted short intro
> > > with
> > > >> >> links
> > > >>  to
> > > >> > tutorials, reference documentation, etc.?
> > > >> >
> > > >> > As an example, I like the "it worked!" welcome page that
> Django
> > > >> >> provides:
> > > >> >
> > > >> > http://i46.tinypic.com/2q025g9.jpg
> > > >> >
> > > >> >
> > > >> > nino martinez wael wrote:
> > > >> >>
> > > >> >> Hi
> > > >> >>
> > > >> >> Someone mentioned that we could have a better look & feel for
> > > >> wicket,
> > > >> >> since
> > > >> >> there are no designers in the core team. I proposed a
> contest,
> > to
> > > >> make
> > > >>  the
> > > >> >> coolest slick

Re: Form#anyComponentError change in 1.4 breaks validation

2010-02-08 Thread Igor Vaynberg
Juergen,

do you remember what the problem was taking out the instanceof checks
for Form and FormComponent? i dont see why they were added or why
removing them would cause problems...

seems some changes are related to WICKET-2202

cheers
-igor

On Mon, Feb 8, 2010 at 9:14 AM, Russell Morrisey
 wrote:
> We are in the process of upgrading our application from wicket 1.3 to 1.4.5. 
> There were a lot of minor changes due to the generics-related code changes, 
> but for the most part the upgrade has been smooth. One big problem we've 
> recently come across:
>
> Form#anyComponentError was changed in this version. This is a breaking change 
> for our application, with no simple workaround provided. Please consider 
> rolling it back to the previous behavior.
>
> In the previous version of wicket, all types of components in the Form's 
> child hierarchy were checked for component.hasErrorMessage() during form 
> validation; any error registered against a component would cause a validation 
> failure. In the new version, only instances of Form or FormComponent are 
> checked; errors registered against other components are ignored.
>
> Example use case: We have a customized inmethod DataGrid (excellent 
> component!) which displays line items from a project estimate (ROM details). 
> Each line item is identified by a number of reference fields, such as the 
> Module which will be affected by the change, and the Paragraph of the spec 
> which specifies the requirements for the change. The grid has a validation 
> which ensures that a new line item isn't a duplicate (i.e., doesn't have the 
> same Module/Paragraph/etc. combination). It seems to make the most sense to 
> register the error against the DataGrid row, since the row represents the 
> line item that is a duplicate; but the new Form validation logic ignores this 
> change and saves the duplicate into the database. We want the row to detect 
> when it has a validation error registered, and show a new CSS class (marking 
> the row as invalid by making it orange) when we detect the duplicate; but it 
> doesn't make sense to ascribe the validation error to a particular 
> FormComponent on the row. I don't think the hierarchy of the datagrid permits 
> us to make the row itself a Form without extensive changes.
>
> Please let me know what you guys think. I can resend this to the dev mailing 
> list if it's more helpful, or put up a JIRA issue.
> 
>
> RUSSELL E. MORRISEY
> Programmer Analyst Professional
> Mission Solutions Engineering, LLC
>
> | russell.morri...@missionse.com | 
> www.missionse.com
> 304 West Route 38, Moorestown, NJ 08057
>
>
> 
> This is a PRIVATE message. If you are not the intended recipient, please 
> delete without copying and kindly advise us by e-mail of the mistake in 
> delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
> order or other contract unless pursuant to explicit written agreement or 
> government initiative expressly permitting the use of e-mail for such purpose.
>

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



Re: TabbedPanel replaced by AjaxTabbedPanel shows request NS_BINDING_ABORTED

2010-02-08 Thread Riyad Kalla
Kulbhushan,

I think this is the result of Wicket using abort() calls on the
recycled XMLHttpRequest objects that are pooled as discussed here?
http://old.nabble.com/Ajax-request-bug--td27324473.html#a27327789



On Mon, Feb 8, 2010 at 3:17 AM, Kulbhushan Sharma
 wrote:
> Hello,
>
> I have the following code to implement a Ajax Tabbed Panel.
>
> public class TBPage extends WebPage{
>
>    public TBPage() {
>        AjaxTabbedPanel tabPanel = null;
>        List tabs = new ArrayList(2);
>
>        tabs.add(new TabOne());
>        tabs.add(new TabTwo());
>
>        tabPanel = new AjaxTabbedPanel("tabs", tabs);
>        this.add(tabPanel);
>
>
>    }
>
> }
>
> When I access this page with FireFox and with HTTPFox enabled --- everytime I 
> click on a Tab I get NS_BINDING_ABORTED as return status of the request 
> before the tab appears. If I just replace AjaxTabbedPanel by TabbedPanel 
> there is no such problem --- but obviously the whole page refreshes and I do 
> not want that.
>
> Please note, all functionality works fine --- but I am concerned that this 
> error may be root cause of something else. The link 
> http://markmail.org/message/m6z77uoixf3qu7u6 tells us some request was 
> aborted --- but what is that?
>
> Thanks for your response in advance.
>
> Regards,
> Kulbhushan
>
>
>
>      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
> http://downloads.yahoo.com/in/internetexplorer/

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



Re: Loading properties file while using Spring @L

2010-02-08 Thread Igor Vaynberg
i usually create a seperate bean that represents the properties and
let spring fill those in via the property configurer. then inject the
bean and you are done.

-igor

On Mon, Feb 8, 2010 at 8:18 AM, Alec Swan  wrote:
> Igor, were you suggesting the same approach as James did?
>
> If so, I am already using @SpringBean annotations and I am wondering
> if they will continue to work with the
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
> approach?
>
> Thanks.
>
> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>  wrote:
>> You can use the Spring integration to actually create your application
>> object for you:
>>
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>
>> Then, you can wire in anything into it that you want, just like any
>> other Spring bean (because it *is* just another Spring bean)
>>
>> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
>>> I use Wicket, Spring and wicket-spring extensions. Spring
>>> configuration loads properties from config/env.properties file using
>>> PropertyPlaceholderConfigurer. I would like to add more properties to
>>> this file and read them from my Wicket application class. I tried to
>>> inject a Spring Resource using @SpringBean annotation, but it doesn't
>>> work in the my Wicket application class.
>>>
>>> I am looking for recommendations on how to read properties files from
>>> wicket application class. Ideally I would like to use a single
>>> properties file read by Wicket and Spring.
>>>
>>> Thanks,
>>>
>>> Alec
>>>
>>> -
>>> 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
>
>

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



Form#anyComponentError change in 1.4 breaks validation

2010-02-08 Thread Russell Morrisey
We are in the process of upgrading our application from wicket 1.3 to 1.4.5. 
There were a lot of minor changes due to the generics-related code changes, but 
for the most part the upgrade has been smooth. One big problem we've recently 
come across:

Form#anyComponentError was changed in this version. This is a breaking change 
for our application, with no simple workaround provided. Please consider 
rolling it back to the previous behavior.

In the previous version of wicket, all types of components in the Form's child 
hierarchy were checked for component.hasErrorMessage() during form validation; 
any error registered against a component would cause a validation failure. In 
the new version, only instances of Form or FormComponent are checked; errors 
registered against other components are ignored.

Example use case: We have a customized inmethod DataGrid (excellent component!) 
which displays line items from a project estimate (ROM details). Each line item 
is identified by a number of reference fields, such as the Module which will be 
affected by the change, and the Paragraph of the spec which specifies the 
requirements for the change. The grid has a validation which ensures that a new 
line item isn't a duplicate (i.e., doesn't have the same Module/Paragraph/etc. 
combination). It seems to make the most sense to register the error against the 
DataGrid row, since the row represents the line item that is a duplicate; but 
the new Form validation logic ignores this change and saves the duplicate into 
the database. We want the row to detect when it has a validation error 
registered, and show a new CSS class (marking the row as invalid by making it 
orange) when we detect the duplicate; but it doesn't make sense to ascribe the 
validation error to a particular FormComponent on the row. I don't think the 
hierarchy of the datagrid permits us to make the row itself a Form without 
extensive changes.

Please let me know what you guys think. I can resend this to the dev mailing 
list if it's more helpful, or put up a JIRA issue.


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.


Re: Wicket RAD project

2010-02-08 Thread Vineet Manohar
Code generation saves time. I have previously created a JSF/Seam code
generator where the application does full JPA, AJAX, security, email etc.
See a live demo of example app:
http://demo.clickframes.org/tracker (it is 100% generated)

I am trying to create a similar code generator for Wicket. The idea is:
Write App Spec XML -> Generate Wicket App -> Customize -> Regenerate

I would incorporate Wicketopia or other existing RAD tool into my code
generator if that makes it easier. As an example, in the JSF/Seam plugin
that I wrote I used the Hibernate HBM -> DDL schema generation feature
(hibernate.hbm2ddl.auto=create).

I was playing with the Wicket hello, world example app. It took only a few
minutes to write the templates to generate such simple apps.
http://code.google.com/p/clickframes-wicket-plugin/source/browse/trunk/examples/helloworld/src/main/clickframes/autoscan/src/main/java/%24%7BpackagePath%7D/

I am now trying to other features like links, forms, etc. An approach of
possibly integrating with another RAD tool/framework is appealing.

On Mon, Feb 8, 2010 at 9:23 AM, James Carman
wrote:

> Code generation?  Is that really necessary?  I'm working on a project
> called Wicketopia where we dynamically create bean forms based on
> runtime class metadata.  That's what Wicket Web Beans does, too.  Code
> generation really isn't needed (unless you're talking about generating
> the original project).
>
> On Mon, Feb 8, 2010 at 9:22 AM, Vineet Manohar 
> wrote:
> > Would be Interesting to find out if this is still being maintained as I
> am
> > also trying to create another Wicket RAD app with full code generation,
> JPA
> > support, etc. http://code.google.com/p/clickframes-wicket-plugin/
> >
> > On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau 
> wrote:
> >
> >> Hi team;
> >>
> >> Just wondering, is Wicket RAD project still alive ?
> >>
> >> http://sites.google.com/site/wicketrad/
> >>
> >>
> >> Best regards.
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Loading properties file while using Spring @L

2010-02-08 Thread James Carman
I'm using both and they work fine.

On Mon, Feb 8, 2010 at 11:18 AM, Alec Swan  wrote:
> Igor, were you suggesting the same approach as James did?
>
> If so, I am already using @SpringBean annotations and I am wondering
> if they will continue to work with the
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
> approach?
>
> Thanks.
>
> On Mon, Feb 8, 2010 at 4:41 AM, James Carman
>  wrote:
>> You can use the Spring integration to actually create your application
>> object for you:
>>
>> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>>
>> Then, you can wire in anything into it that you want, just like any
>> other Spring bean (because it *is* just another Spring bean)
>>
>> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
>>> I use Wicket, Spring and wicket-spring extensions. Spring
>>> configuration loads properties from config/env.properties file using
>>> PropertyPlaceholderConfigurer. I would like to add more properties to
>>> this file and read them from my Wicket application class. I tried to
>>> inject a Spring Resource using @SpringBean annotation, but it doesn't
>>> work in the my Wicket application class.
>>>
>>> I am looking for recommendations on how to read properties files from
>>> wicket application class. Ideally I would like to use a single
>>> properties file read by Wicket and Spring.
>>>
>>> Thanks,
>>>
>>> Alec
>>>
>>> -
>>> 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
>
>

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



Re: Loading properties file while using Spring @L

2010-02-08 Thread Alec Swan
Igor, were you suggesting the same approach as James did?

If so, I am already using @SpringBean annotations and I am wondering
if they will continue to work with the
http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
approach?

Thanks.

On Mon, Feb 8, 2010 at 4:41 AM, James Carman
 wrote:
> You can use the Spring integration to actually create your application
> object for you:
>
> http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
>
> Then, you can wire in anything into it that you want, just like any
> other Spring bean (because it *is* just another Spring bean)
>
> On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
>> I use Wicket, Spring and wicket-spring extensions. Spring
>> configuration loads properties from config/env.properties file using
>> PropertyPlaceholderConfigurer. I would like to add more properties to
>> this file and read them from my Wicket application class. I tried to
>> inject a Spring Resource using @SpringBean annotation, but it doesn't
>> work in the my Wicket application class.
>>
>> I am looking for recommendations on how to read properties files from
>> wicket application class. Ideally I would like to use a single
>> properties file read by Wicket and Spring.
>>
>> Thanks,
>>
>> Alec
>>
>> -
>> 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: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread Peter Jones
Hi,

I'm excited by this idea for two reasons: 1) it would be a good design
exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect
my wife would look hot in a Wicket T-shirt!

I'm not promising anything - we've got a big release mid-March (yes, we're
using Wicket) - but I'd like to get commit rights just in case; what do I
need to do?

Thanks,
Pete

On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> I agree, and the contest are about Wicket Examples not the quickstart.
>
> 2010/2/8 Martijn Dashorst 
>
> > I don't like to add more bells and whistles to the quickstart. If we
> > add graphics, JS and other stuff, you'd have to remove it for every
> > project. I like the fact that I can grab the quickstart and just start
> > hacking without having to strip it from superfluous muck.
> >
> > I do like the changes Kinabalu proposed though: simple, low profile
> > and removed easily enough.
> >
> > Martijn
> >
> > On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
> >  wrote:
> > > Design as in graphical. While I do think the changes you made are
> equally
> > > important.
> > >
> > > The graphical perspective was what begun the contest. It would'nt
> > certainly
> > > not hurt that the quickstart or the examples looked more slick. However
> > any
> > > out come are a win-win.
> > >
> > > regards Nino
> > >
> > > 2010/2/8 Andrew Lombardi 
> > >
> > >> Design as in programming?  or design as in graphical?
> > >>
> > >> I think the intent I gathered from mbrictson was to put a semi-nicer
> > look
> > >> on a plain page, and provide useful links for new folks.  Things like
> > the
> > >> examples which should be perused a lot while first learning Wicket.
> > >>
> > >> It's a quickstart, it should take on a tone of simplicity.  Just like
> > the
> > >> Django quickstart, which doesn't aim to do anything other than shove
> you
> > in
> > >> the right direction
> > >>
> > >> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
> > >>
> > >> > Yeah I know. But some would probably use it as a starting point in
> > design
> > >> as
> > >> > well.
> > >> >
> > >> > 2010/2/7 Andrew Lombardi 
> > >> >
> > >> >> This isn't a modification for all the wicket examples, this is just
> > for
> > >> the
> > >> >> maven archetype, the examples are a much larger undertaking.
> > >> >>
> > >> >> Focus here was to make it simple, and provide some references that
> > >> people
> > >> >> could find useful.  There's no reason to extrapolate out and design
> a
> > >> crazy
> > >> >> quickstart page because it will be deleted pretty quickly (we hope)
> > >> >>
> > >> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
> > >> >>
> > >> >>> Great. We need more people though to make it a real contest! :)
> And
> > >> more
> > >> >>> focus on looks.
> > >> >>>
> > >> >>> 2010/2/6 Andrew Lombardi 
> > >> >>>
> > >>  I agree.  I had a few moments tonight and put this together.  It
> > >> >> includes
> > >>  the standard wicket label "message" showing that Wicket is
> parsing
> > >> >> properly.
> > >> 
> > >>  It also includes links to: examples, javadoc, books about wicket,
> > and
> > >>  blogs.  and will show the version you used to install from
> > archetype.
> > >> 
> > >>  Thoughts?  You can click through on the bug and see an attached
> > >> >> screenshot
> > >> 
> > >>  https://issues.apache.org/jira/browse/WICKET-2724
> > >> 
> > >>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
> > >> 
> > >> >
> > >> > In addition to the examples, I think it would be nice to apply a
> > >> >> pleasant
> > >>  CSS
> > >> > skin to the Wicket quickstart archetype. Instead of an un-styled
> > >> > "QuickStart" message, how about a nicely formatted short intro
> > with
> > >> >> links
> > >>  to
> > >> > tutorials, reference documentation, etc.?
> > >> >
> > >> > As an example, I like the "it worked!" welcome page that Django
> > >> >> provides:
> > >> >
> > >> > http://i46.tinypic.com/2q025g9.jpg
> > >> >
> > >> >
> > >> > nino martinez wael wrote:
> > >> >>
> > >> >> Hi
> > >> >>
> > >> >> Someone mentioned that we could have a better look & feel for
> > >> wicket,
> > >> >> since
> > >> >> there are no designers in the core team. I proposed a contest,
> to
> > >> make
> > >>  the
> > >> >> coolest slickest css for wicket. So please feel free to apply.
> > >> >>
> > >> >>
> > >> >> Requirements:
> > >> >>
> > >> >> your css should be compatible with the basic browsers, Firefox
> ,
> > IE
> > >> ,
> > >> >> Safari
> > >> >> etc. And retain heavy use of embedded js. And it should be a
> drop
> > >> on,
> > >> >> using
> > >> >> existing id's & hierachy for design.
> > >> >>
> > >> >> Practical info:
> > >> >>
> > >> >> The contest ends in 2 months April 2nd.
> > >> >>
> > >> >> Get the wicket exa

Re: Wicket RAD project

2010-02-08 Thread James Carman
Well, right now I'm working on abstracting out the class metadata
logic into a new library I'm calling "metastopheles."  It seems that
all of these RAD libraries (as well as many others) have their own
bean metadata framework set up.  It seems like a very common itch to
scratch.

On Mon, Feb 8, 2010 at 10:37 AM, Ernesto Reinaldo Barreiro
 wrote:
> I fully agree:-)
>
> Best,
>
> Ernesto
>
>
> On Mon, Feb 8, 2010 at 3:59 PM, James Carman
> wrote:
>
>> There are a lot of folks that have some really cool ideas in this
>> area.  We really should try to join forces to create the best-of-breed
>> solution for Wicket.
>>
>> On Mon, Feb 8, 2010 at 9:53 AM, Ernesto Reinaldo Barreiro
>>  wrote:
>> > I follow a similar approach in [1] to generate CRUDs. End project's code
>> is
>> > minimal an the dirty job is done by components that use meta-data to
>> > generate forms, grids and so on. It is very easy to achieve such things
>> > using repeaters...
>> >
>> > Ernesto
>> >
>> > [1]-http://code.google.com/p/antilia/
>> >
>> > On Mon, Feb 8, 2010 at 3:23 PM, James Carman
>> > wrote:
>> >
>> >> Code generation?  Is that really necessary?  I'm working on a project
>> >> called Wicketopia where we dynamically create bean forms based on
>> >> runtime class metadata.  That's what Wicket Web Beans does, too.  Code
>> >> generation really isn't needed (unless you're talking about generating
>> >> the original project).
>> >>
>> >> On Mon, Feb 8, 2010 at 9:22 AM, Vineet Manohar <
>> vineet.mano...@gmail.com>
>> >> wrote:
>> >> > Would be Interesting to find out if this is still being maintained as
>> I
>> >> am
>> >> > also trying to create another Wicket RAD app with full code
>> generation,
>> >> JPA
>> >> > support, etc. http://code.google.com/p/clickframes-wicket-plugin/
>> >> >
>> >> > On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau 
>> >> wrote:
>> >> >
>> >> >> Hi team;
>> >> >>
>> >> >> Just wondering, is Wicket RAD project still alive ?
>> >> >>
>> >> >> http://sites.google.com/site/wicketrad/
>> >> >>
>> >> >>
>> >> >> Best regards.
>> >> >>
>> >> >
>> >>
>> >> -
>> >> 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: Wicket RAD project

2010-02-08 Thread Ernesto Reinaldo Barreiro
I fully agree:-)

Best,

Ernesto


On Mon, Feb 8, 2010 at 3:59 PM, James Carman
wrote:

> There are a lot of folks that have some really cool ideas in this
> area.  We really should try to join forces to create the best-of-breed
> solution for Wicket.
>
> On Mon, Feb 8, 2010 at 9:53 AM, Ernesto Reinaldo Barreiro
>  wrote:
> > I follow a similar approach in [1] to generate CRUDs. End project's code
> is
> > minimal an the dirty job is done by components that use meta-data to
> > generate forms, grids and so on. It is very easy to achieve such things
> > using repeaters...
> >
> > Ernesto
> >
> > [1]-http://code.google.com/p/antilia/
> >
> > On Mon, Feb 8, 2010 at 3:23 PM, James Carman
> > wrote:
> >
> >> Code generation?  Is that really necessary?  I'm working on a project
> >> called Wicketopia where we dynamically create bean forms based on
> >> runtime class metadata.  That's what Wicket Web Beans does, too.  Code
> >> generation really isn't needed (unless you're talking about generating
> >> the original project).
> >>
> >> On Mon, Feb 8, 2010 at 9:22 AM, Vineet Manohar <
> vineet.mano...@gmail.com>
> >> wrote:
> >> > Would be Interesting to find out if this is still being maintained as
> I
> >> am
> >> > also trying to create another Wicket RAD app with full code
> generation,
> >> JPA
> >> > support, etc. http://code.google.com/p/clickframes-wicket-plugin/
> >> >
> >> > On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau 
> >> wrote:
> >> >
> >> >> Hi team;
> >> >>
> >> >> Just wondering, is Wicket RAD project still alive ?
> >> >>
> >> >> http://sites.google.com/site/wicketrad/
> >> >>
> >> >>
> >> >> Best regards.
> >> >>
> >> >
> >>
> >> -
> >> 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: Wicket RAD project

2010-02-08 Thread James Carman
There are a lot of folks that have some really cool ideas in this
area.  We really should try to join forces to create the best-of-breed
solution for Wicket.

On Mon, Feb 8, 2010 at 9:53 AM, Ernesto Reinaldo Barreiro
 wrote:
> I follow a similar approach in [1] to generate CRUDs. End project's code is
> minimal an the dirty job is done by components that use meta-data to
> generate forms, grids and so on. It is very easy to achieve such things
> using repeaters...
>
> Ernesto
>
> [1]-http://code.google.com/p/antilia/
>
> On Mon, Feb 8, 2010 at 3:23 PM, James Carman
> wrote:
>
>> Code generation?  Is that really necessary?  I'm working on a project
>> called Wicketopia where we dynamically create bean forms based on
>> runtime class metadata.  That's what Wicket Web Beans does, too.  Code
>> generation really isn't needed (unless you're talking about generating
>> the original project).
>>
>> On Mon, Feb 8, 2010 at 9:22 AM, Vineet Manohar 
>> wrote:
>> > Would be Interesting to find out if this is still being maintained as I
>> am
>> > also trying to create another Wicket RAD app with full code generation,
>> JPA
>> > support, etc. http://code.google.com/p/clickframes-wicket-plugin/
>> >
>> > On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau 
>> wrote:
>> >
>> >> Hi team;
>> >>
>> >> Just wondering, is Wicket RAD project still alive ?
>> >>
>> >> http://sites.google.com/site/wicketrad/
>> >>
>> >>
>> >> Best regards.
>> >>
>> >
>>
>> -
>> 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: Wicket RAD project

2010-02-08 Thread Ernesto Reinaldo Barreiro
I follow a similar approach in [1] to generate CRUDs. End project's code is
minimal an the dirty job is done by components that use meta-data to
generate forms, grids and so on. It is very easy to achieve such things
using repeaters...

Ernesto

[1]-http://code.google.com/p/antilia/

On Mon, Feb 8, 2010 at 3:23 PM, James Carman
wrote:

> Code generation?  Is that really necessary?  I'm working on a project
> called Wicketopia where we dynamically create bean forms based on
> runtime class metadata.  That's what Wicket Web Beans does, too.  Code
> generation really isn't needed (unless you're talking about generating
> the original project).
>
> On Mon, Feb 8, 2010 at 9:22 AM, Vineet Manohar 
> wrote:
> > Would be Interesting to find out if this is still being maintained as I
> am
> > also trying to create another Wicket RAD app with full code generation,
> JPA
> > support, etc. http://code.google.com/p/clickframes-wicket-plugin/
> >
> > On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau 
> wrote:
> >
> >> Hi team;
> >>
> >> Just wondering, is Wicket RAD project still alive ?
> >>
> >> http://sites.google.com/site/wicketrad/
> >>
> >>
> >> Best regards.
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket RAD project

2010-02-08 Thread James Carman
Code generation?  Is that really necessary?  I'm working on a project
called Wicketopia where we dynamically create bean forms based on
runtime class metadata.  That's what Wicket Web Beans does, too.  Code
generation really isn't needed (unless you're talking about generating
the original project).

On Mon, Feb 8, 2010 at 9:22 AM, Vineet Manohar  wrote:
> Would be Interesting to find out if this is still being maintained as I am
> also trying to create another Wicket RAD app with full code generation, JPA
> support, etc. http://code.google.com/p/clickframes-wicket-plugin/
>
> On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau  wrote:
>
>> Hi team;
>>
>> Just wondering, is Wicket RAD project still alive ?
>>
>> http://sites.google.com/site/wicketrad/
>>
>>
>> Best regards.
>>
>

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



Re: Wicket RAD project

2010-02-08 Thread Vineet Manohar
Would be Interesting to find out if this is still being maintained as I am
also trying to create another Wicket RAD app with full code generation, JPA
support, etc. http://code.google.com/p/clickframes-wicket-plugin/

On Mon, Feb 8, 2010 at 7:20 AM, Josh Kamau  wrote:

> Hi team;
>
> Just wondering, is Wicket RAD project still alive ?
>
> http://sites.google.com/site/wicketrad/
>
>
> Best regards.
>


Re: AbortException

2010-02-08 Thread Erik van Oosten
Throwing a RestartResponseException will not redirect but restart the 
request handling. To force the redirect as well, you can call

 setRedirect(true)
just before throwing the exception.

But I doubt it will work for you; when you have an error page without 
the redirect, you will probably also have it with the redirect.


Regards,
   Erik.


Douglas Ferguson wrote:

I tried that and it doesn't redirect, it throws the error back up and renders 
our error page
  

org.apache.wicket.RestartResponseException:null




On Feb 7, 2010, at 2:20 AM, Martin Grigorov wrote:
  

throw new RestartResponseException(LinkPartners.class)

On Sat, 2010-02-06 at 23:53 -0800, Douglas Ferguson wrote:


I may be using this wrong, but my understanding was that if I wanted to 
redirect a user and hault execution of the current page I could do the 
following:

setResponsePage(LinkPartners.class);
throw new AbortException();

However, there seems to be situations where the AbortException actually bubbles 
back up to the user.
What would cause the redirect not to work and the AbortException to make it to 
the screen?

D/
  



--
Send from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: PropertyListView problem

2010-02-08 Thread Alexander Monakhov
Thanx a lot! Now it's working fine. Didn't think problem is in
setReuseItems. Thanx again.

Best regards, Alexander.


Re: Wicket Layout

2010-02-08 Thread Ernesto Reinaldo Barreiro
You are welcome.

Ernesto

On Mon, Feb 8, 2010 at 2:13 PM, Josh Kamau  wrote:

> Ernesto.
>
> I got it. thanks so much for your support.
>
> Regards.
>
> On Mon, Feb 8, 2010 at 3:44 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > I already e-mailed them to you... It is bundle as a component (Panel)
> which
> > has some hook methods you can override to plug in you content. I'll put
> > this
> > code somewhere so that it is accessible for others... and if I find time
> > improve it to make it more configurable... I would appreciate that if you
> > improve it on your own you contribute your works... So that others can
> > benefit as well;-)
> >
> > Best,
> >
> > Ernesto
> >
> > On Mon, Feb 8, 2010 at 1:38 PM, Josh Kamau 
> wrote:
> >
> > > Ernesto
> > >
> > > Great!!. i really appreciate. I wish i could be able to bundle the
> layout
> > > into a library.
> > >
> > > Regards.
> > >
> > > On Mon, Feb 8, 2010 at 3:34 PM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > I just played a bit with [1] and was really easy to get it working
> with
> > > > Wicket I'll mail the files to you and later on publish them
> > > > somewhere...
> > > >
> > > > Best,
> > > >
> > > > Ernesto
> > > >
> > > >
> > > > I'll privately mail my files to you and later on
> > > >
> > > > On Mon, Feb 8, 2010 at 10:15 AM, Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com> wrote:
> > > >
> > > > > Hi Josh,
> > > > >
> > > > > In general it is very easy to encapsulate existing JavaScrip
> > components
> > > > > with Wikcet... I think it would be very easy to integrate this
> > example
> > > > [1]
> > > > > of layout manager into your application.
> > > > >
> > > > > Best,
> > > > >
> > > > > Ernesto
> > > > >
> > > > > References.
> > > > >
> > > > > [1]-http://layout.jquery-dev.net/documentation.cfm#Example
> > > > >
> > > > >
> > > > > On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau 
> > > > wrote:
> > > > >
> > > > >> Hi guys;
> > > > >>
> > > > >> I think wicket is the best java web framework out there. However ,
> i
> > > > >> really
> > > > >> would like be to able to create a layout like this :
> > > > >> http://demos.dojotoolkit.org/demos/mail/
> > > > >>
> > > > >> Does the current dojo integration support this. Is it possible to
> > > create
> > > > >> such a layout with vanilla  wicket?
> > > > >>
> > > > >> regards.
> > > > >>
> > > > >> Josh
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>


Re: Wicket Layout

2010-02-08 Thread Josh Kamau
Ernesto.

I got it. thanks so much for your support.

Regards.

On Mon, Feb 8, 2010 at 3:44 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> I already e-mailed them to you... It is bundle as a component (Panel) which
> has some hook methods you can override to plug in you content. I'll put
> this
> code somewhere so that it is accessible for others... and if I find time
> improve it to make it more configurable... I would appreciate that if you
> improve it on your own you contribute your works... So that others can
> benefit as well;-)
>
> Best,
>
> Ernesto
>
> On Mon, Feb 8, 2010 at 1:38 PM, Josh Kamau  wrote:
>
> > Ernesto
> >
> > Great!!. i really appreciate. I wish i could be able to bundle the layout
> > into a library.
> >
> > Regards.
> >
> > On Mon, Feb 8, 2010 at 3:34 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi Josh,
> > >
> > > I just played a bit with [1] and was really easy to get it working with
> > > Wicket I'll mail the files to you and later on publish them
> > > somewhere...
> > >
> > > Best,
> > >
> > > Ernesto
> > >
> > >
> > > I'll privately mail my files to you and later on
> > >
> > > On Mon, Feb 8, 2010 at 10:15 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Hi Josh,
> > > >
> > > > In general it is very easy to encapsulate existing JavaScrip
> components
> > > > with Wikcet... I think it would be very easy to integrate this
> example
> > > [1]
> > > > of layout manager into your application.
> > > >
> > > > Best,
> > > >
> > > > Ernesto
> > > >
> > > > References.
> > > >
> > > > [1]-http://layout.jquery-dev.net/documentation.cfm#Example
> > > >
> > > >
> > > > On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau 
> > > wrote:
> > > >
> > > >> Hi guys;
> > > >>
> > > >> I think wicket is the best java web framework out there. However , i
> > > >> really
> > > >> would like be to able to create a layout like this :
> > > >> http://demos.dojotoolkit.org/demos/mail/
> > > >>
> > > >> Does the current dojo integration support this. Is it possible to
> > create
> > > >> such a layout with vanilla  wicket?
> > > >>
> > > >> regards.
> > > >>
> > > >> Josh
> > > >>
> > > >
> > > >
> > >
> >
>


Re: PropertyListView problem

2010-02-08 Thread Pedro Santos
You are calling setReuseItems method from listview. From it api:

" if you modify the listView model object, than you must manually call
listView.removeAll() in order to rebuild the ListItems. "

On Mon, Feb 8, 2010 at 10:55 AM, Alexander Monakhov wrote:

> Hi, friends.
>
> Could you help me with subject?
> Here is the situation. I want to create manageable list of item, so I could
> add new items to it, update current state of each item and remove items.
> I'm using ListView for this purpose. Here is sample code that works with
> List that describes items:
>
> public class ItemsPanel extends Panel {
>
> // here goes fields definition section
>
> // list of items to show
> private List items;
>
> public ItemsPanel( String id ) {
>   super( id );
>
>   items = new ArrayList();
>   items.add( "String 0" );
>   items.add( "String 1" );
>
>   final ListView itemsList = new PropertyListView(
>"items", new PropertyModel>( this, "items" ) )
> {
>
>  @Override
>  protected void populateItem( final ListItem item ) {
> final WebMarkupContainer baseDiv = new WebMarkupContainer( "title"
> );
> baseDiv.add( new Label( "text", item.getModel() ) );
>
> final WebMarkupContainer deleteImg = new WebMarkupContainer(
> "delete.arrow" );
>
> deleteImg.add( new AjaxEventBehavior( "onClick" ) {
>
>@Override
>protected void onEvent( AjaxRequestTarget target ) {
>   testStrings.remove( item.getModelObject() );
>   target.addComponent( ItemsPanel.this );
>}
>
>   });
>   baseDiv.add( deleteImg );
>
>   item.add(  baseDiv );
>}
>
>  };
>  itemsList.setReuseItems( true );
>  itemsList.setOutputMarkupId( true );
>  add( itemsList );
>
>  add( new AjaxLink( "add" ) {
>
>@Override
>public void onClick( AjaxRequestTarget target ) {
>   testStrings.add( "New String " + (items.size() + 1) );
>   target.addComponent( ItemsPanel.this );
>}
>
>  });
>
>  setOutputMarkupId( true );
> }
>
> }
>
> Markup for this class is:
> 
>
>
>
>Add item
>
>
>[Here goes a
> text]
> wicket:id="delete.arrow"/>
>
>
>
>
>
>
> 
>
>
> It'is working perfectly, but when I'm changing List to
> List, where CustomType is custom class with appropriated info,
> when I push delete arrow last item from showed list is removed, not that
> one
> that I want to delete. But correct item is removed from backed list of
> items. I can't understand what's wrong. During debug I can see that backed
> list of items contains right set of items, but in html appeared other list
> of items.
>
> Best regards, Alexander.
>



-- 
Pedro Henrique Oliveira dos Santos


PropertyListView problem

2010-02-08 Thread Alexander Monakhov
Hi, friends.

Could you help me with subject?
Here is the situation. I want to create manageable list of item, so I could
add new items to it, update current state of each item and remove items.
I'm using ListView for this purpose. Here is sample code that works with
List that describes items:

public class ItemsPanel extends Panel {

// here goes fields definition section

// list of items to show
private List items;

public ItemsPanel( String id ) {
   super( id );

   items = new ArrayList();
   items.add( "String 0" );
   items.add( "String 1" );

   final ListView itemsList = new PropertyListView(
"items", new PropertyModel>( this, "items" ) )
{

  @Override
  protected void populateItem( final ListItem item ) {
 final WebMarkupContainer baseDiv = new WebMarkupContainer( "title"
);
 baseDiv.add( new Label( "text", item.getModel() ) );

 final WebMarkupContainer deleteImg = new WebMarkupContainer(
"delete.arrow" );

 deleteImg.add( new AjaxEventBehavior( "onClick" ) {

@Override
protected void onEvent( AjaxRequestTarget target ) {
   testStrings.remove( item.getModelObject() );
   target.addComponent( ItemsPanel.this );
}

   });
   baseDiv.add( deleteImg );

   item.add(  baseDiv );
}

 };
 itemsList.setReuseItems( true );
 itemsList.setOutputMarkupId( true );
 add( itemsList );

 add( new AjaxLink( "add" ) {

@Override
public void onClick( AjaxRequestTarget target ) {
   testStrings.add( "New String " + (items.size() + 1) );
   target.addComponent( ItemsPanel.this );
}

 });

 setOutputMarkupId( true );
}

}

Markup for this class is:




Add item


[Here goes a
text]










It'is working perfectly, but when I'm changing List to
List, where CustomType is custom class with appropriated info,
when I push delete arrow last item from showed list is removed, not that one
that I want to delete. But correct item is removed from backed list of
items. I can't understand what's wrong. During debug I can see that backed
list of items contains right set of items, but in html appeared other list
of items.

Best regards, Alexander.


Re: Wicket Layout

2010-02-08 Thread Ernesto Reinaldo Barreiro
I already e-mailed them to you... It is bundle as a component (Panel) which
has some hook methods you can override to plug in you content. I'll put this
code somewhere so that it is accessible for others... and if I find time
improve it to make it more configurable... I would appreciate that if you
improve it on your own you contribute your works... So that others can
benefit as well;-)

Best,

Ernesto

On Mon, Feb 8, 2010 at 1:38 PM, Josh Kamau  wrote:

> Ernesto
>
> Great!!. i really appreciate. I wish i could be able to bundle the layout
> into a library.
>
> Regards.
>
> On Mon, Feb 8, 2010 at 3:34 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi Josh,
> >
> > I just played a bit with [1] and was really easy to get it working with
> > Wicket I'll mail the files to you and later on publish them
> > somewhere...
> >
> > Best,
> >
> > Ernesto
> >
> >
> > I'll privately mail my files to you and later on
> >
> > On Mon, Feb 8, 2010 at 10:15 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi Josh,
> > >
> > > In general it is very easy to encapsulate existing JavaScrip components
> > > with Wikcet... I think it would be very easy to integrate this example
> > [1]
> > > of layout manager into your application.
> > >
> > > Best,
> > >
> > > Ernesto
> > >
> > > References.
> > >
> > > [1]-http://layout.jquery-dev.net/documentation.cfm#Example
> > >
> > >
> > > On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau 
> > wrote:
> > >
> > >> Hi guys;
> > >>
> > >> I think wicket is the best java web framework out there. However , i
> > >> really
> > >> would like be to able to create a layout like this :
> > >> http://demos.dojotoolkit.org/demos/mail/
> > >>
> > >> Does the current dojo integration support this. Is it possible to
> create
> > >> such a layout with vanilla  wicket?
> > >>
> > >> regards.
> > >>
> > >> Josh
> > >>
> > >
> > >
> >
>


Re: Wicket Layout

2010-02-08 Thread Josh Kamau
Ernesto

Great!!. i really appreciate. I wish i could be able to bundle the layout
into a library.

Regards.

On Mon, Feb 8, 2010 at 3:34 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi Josh,
>
> I just played a bit with [1] and was really easy to get it working with
> Wicket I'll mail the files to you and later on publish them
> somewhere...
>
> Best,
>
> Ernesto
>
>
> I'll privately mail my files to you and later on
>
> On Mon, Feb 8, 2010 at 10:15 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi Josh,
> >
> > In general it is very easy to encapsulate existing JavaScrip components
> > with Wikcet... I think it would be very easy to integrate this example
> [1]
> > of layout manager into your application.
> >
> > Best,
> >
> > Ernesto
> >
> > References.
> >
> > [1]-http://layout.jquery-dev.net/documentation.cfm#Example
> >
> >
> > On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau 
> wrote:
> >
> >> Hi guys;
> >>
> >> I think wicket is the best java web framework out there. However , i
> >> really
> >> would like be to able to create a layout like this :
> >> http://demos.dojotoolkit.org/demos/mail/
> >>
> >> Does the current dojo integration support this. Is it possible to create
> >> such a layout with vanilla  wicket?
> >>
> >> regards.
> >>
> >> Josh
> >>
> >
> >
>


Re: Wicket Layout

2010-02-08 Thread Ernesto Reinaldo Barreiro
Hi Josh,

I just played a bit with [1] and was really easy to get it working with
Wicket I'll mail the files to you and later on publish them somewhere...

Best,

Ernesto


I'll privately mail my files to you and later on

On Mon, Feb 8, 2010 at 10:15 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi Josh,
>
> In general it is very easy to encapsulate existing JavaScrip components
> with Wikcet... I think it would be very easy to integrate this example [1]
> of layout manager into your application.
>
> Best,
>
> Ernesto
>
> References.
>
> [1]-http://layout.jquery-dev.net/documentation.cfm#Example
>
>
> On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau  wrote:
>
>> Hi guys;
>>
>> I think wicket is the best java web framework out there. However , i
>> really
>> would like be to able to create a layout like this :
>> http://demos.dojotoolkit.org/demos/mail/
>>
>> Does the current dojo integration support this. Is it possible to create
>> such a layout with vanilla  wicket?
>>
>> regards.
>>
>> Josh
>>
>
>


Re: Wicket Layout

2010-02-08 Thread Josh Kamau
Ernesto
*
*
*Thanks. i will use the jquery-ui .
*
On Mon, Feb 8, 2010 at 12:15 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi Josh,
>
> In general it is very easy to encapsulate existing JavaScrip components
> with
> Wikcet... I think it would be very easy to integrate this example [1] of
> layout manager into your application.
>
> Best,
>
> Ernesto
>
> References.
>
> [1]-http://layout.jquery-dev.net/documentation.cfm#Example
>
> On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau  wrote:
>
> > Hi guys;
> >
> > I think wicket is the best java web framework out there. However , i
> really
> > would like be to able to create a layout like this :
> > http://demos.dojotoolkit.org/demos/mail/
> >
> > Does the current dojo integration support this. Is it possible to create
> > such a layout with vanilla  wicket?
> >
> > regards.
> >
> > Josh
> >
>


Wicket RAD project

2010-02-08 Thread Josh Kamau
Hi team;

Just wondering, is Wicket RAD project still alive ?

http://sites.google.com/site/wicketrad/


Best regards.


Re: How reRender a component from parent page?

2010-02-08 Thread Rangel Preis
Thanks, Don but this don't work the value don't change. And I call
setOutputMarkupId when i build it. and call it again later...

Thanks All.

2010/2/8 Don Ferguson :
> I think setOutputMarkupId() should have been called earlier, in the
> MyTemplate constructor when the Header was constructed.  Ajax processing
> needs the markup id to find the component you're changing, so setting it in
> onModelChanged() is too late.  Also, I don't think you need the call to
> modelChanged() or to override onModelChanged.  Changing the model object and
> adding the component to the target should be sufficient.
>
> -Don
>
> On Feb 8, 2010, at 2:16 AM, Rangel Preis wrote:
>
>> My template HTML
>>
>> http://www.w3.org/1999/xhtml";
>>
>> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";>
>>        
>>                
>>                > content=""/>
>>                
>>                
>>        
>>        
>>
>>       
>>
>>
>>                
>>
>>                
>>                
>>                        
>>                                
>>                                        > class="col_esq"/>
>>                                        
>>                                                > style="display: none;">
>>                            
>>                                
>>                                        
>>                                        
>>                                        
>>                                
>>                        
>>                
>>                
>>        
>> 
>>
>> Header.html
>>
>> 
>>   
>>       
>>   
>>        //Value that i want to change
>>        
>>        
>>   
>>
>>   
>>        
>>        
>>
>>        
>> 
>>
>> Thanks.
>>
>> 2010/2/5 Riyad Kalla :
>>>
>>> What do the tasty HTML bits look like? (wicket:ids and what not)
>>>
>>> On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis 
>>> wrote:

 How can I use Ajax to change value from a parent page in my layout. I
 try to change values in header using a action from content page.

 I have this:

   |---|
   |           HEADER           |
   |---|
   | MENU |   CONTENT   |
   |             |                       |
   |             |                       |
   |             |                       |
   |---|---|
   |          FOOTER            |
   |---|

 public class MyTemplate{
  public MyTemplate() {
        super();

        this.add(CSSPackageResource.getHeaderContribution(...);

        this.add(AbstractTemplatePage.FEEDBACK);

        this.addOrReplace(new Header());

        this.add(new Menu());

        this.add(new Footer());
    .


 public class MyContetPage extends MyTemplate {
 public MyContetPage(final PageParameters _parameters) {
 add(new AjaxFallbackLink("rem") {

   �...@override
    public void onClick(final AjaxRequestTarget target) {
        …...
     }
   });
 ….
 }
 }

 How change value in the header when i click on the ajaxlink of my
 content page?

 In the onClick i try this; but don't work

 //some function to change the model value...
 this.getPage().get("header:component").modelChanged();
 target.addComponent(this.getPage().get("header:component"));

 And in my Header.java I override onModelChanged:
    protected void onModelChanged() {
        super.onModelChanged();
        this.addOrReplace(component).setOutputMarkupId(true));
    }

 Thanks all.

 -
 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
>>
>
>
> -
> 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: Loading properties file while using Spring @L

2010-02-08 Thread James Carman
You can use the Spring integration to actually create your application
object for you:

http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach

Then, you can wire in anything into it that you want, just like any
other Spring bean (because it *is* just another Spring bean)

On Sun, Feb 7, 2010 at 11:29 PM, Alec Swan  wrote:
> I use Wicket, Spring and wicket-spring extensions. Spring
> configuration loads properties from config/env.properties file using
> PropertyPlaceholderConfigurer. I would like to add more properties to
> this file and read them from my Wicket application class. I tried to
> inject a Spring Resource using @SpringBean annotation, but it doesn't
> work in the my Wicket application class.
>
> I am looking for recommendations on how to read properties files from
> wicket application class. Ideally I would like to use a single
> properties file read by Wicket and Spring.
>
> Thanks,
>
> Alec
>
> -
> 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: How reRender a component from parent page?

2010-02-08 Thread Don Ferguson
I think setOutputMarkupId() should have been called earlier, in the  
MyTemplate constructor when the Header was constructed.  Ajax  
processing needs the markup id to find the component you're changing,  
so setting it in onModelChanged() is too late.  Also, I don't think  
you need the call to modelChanged() or to override onModelChanged.   
Changing the model object and adding the component to the target  
should be sufficient.


-Don

On Feb 8, 2010, at 2:16 AM, Rangel Preis wrote:


My template HTML

http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd 
">









   



















   



Header.html


   
   
   
//Value that i want to change


   

   






Thanks.

2010/2/5 Riyad Kalla :

What do the tasty HTML bits look like? (wicket:ids and what not)

On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis   
wrote:
How can I use Ajax to change value from a parent page in my  
layout. I

try to change values in header using a action from content page.

I have this:

   |---|
   |   HEADER   |
   |---|
   | MENU |   CONTENT   |
   | |   |
   | |   |
   | |   |
   |---|---|
   |  FOOTER|
   |---|

public class MyTemplate{
 public MyTemplate() {
super();

this.add(CSSPackageResource.getHeaderContribution(...);

this.add(AbstractTemplatePage.FEEDBACK);

this.addOrReplace(new Header());

this.add(new Menu());

this.add(new Footer());
.


public class MyContetPage extends MyTemplate {
public MyContetPage(final PageParameters _parameters) {
add(new AjaxFallbackLink("rem") {

@Override
public void onClick(final AjaxRequestTarget target) {
…...
 }
   });
….
}
}

How change value in the header when i click on the ajaxlink of my  
content page?


In the onClick i try this; but don't work

//some function to change the model value...
this.getPage().get("header:component").modelChanged();
target.addComponent(this.getPage().get("header:component"));

And in my Header.java I override onModelChanged:
protected void onModelChanged() {
super.onModelChanged();
this.addOrReplace(component).setOutputMarkupId(true));
}

Thanks all.

-
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




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



Re: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread nino martinez wael
I agree, and the contest are about Wicket Examples not the quickstart.

2010/2/8 Martijn Dashorst 

> I don't like to add more bells and whistles to the quickstart. If we
> add graphics, JS and other stuff, you'd have to remove it for every
> project. I like the fact that I can grab the quickstart and just start
> hacking without having to strip it from superfluous muck.
>
> I do like the changes Kinabalu proposed though: simple, low profile
> and removed easily enough.
>
> Martijn
>
> On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
>  wrote:
> > Design as in graphical. While I do think the changes you made are equally
> > important.
> >
> > The graphical perspective was what begun the contest. It would'nt
> certainly
> > not hurt that the quickstart or the examples looked more slick. However
> any
> > out come are a win-win.
> >
> > regards Nino
> >
> > 2010/2/8 Andrew Lombardi 
> >
> >> Design as in programming?  or design as in graphical?
> >>
> >> I think the intent I gathered from mbrictson was to put a semi-nicer
> look
> >> on a plain page, and provide useful links for new folks.  Things like
> the
> >> examples which should be perused a lot while first learning Wicket.
> >>
> >> It's a quickstart, it should take on a tone of simplicity.  Just like
> the
> >> Django quickstart, which doesn't aim to do anything other than shove you
> in
> >> the right direction
> >>
> >> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
> >>
> >> > Yeah I know. But some would probably use it as a starting point in
> design
> >> as
> >> > well.
> >> >
> >> > 2010/2/7 Andrew Lombardi 
> >> >
> >> >> This isn't a modification for all the wicket examples, this is just
> for
> >> the
> >> >> maven archetype, the examples are a much larger undertaking.
> >> >>
> >> >> Focus here was to make it simple, and provide some references that
> >> people
> >> >> could find useful.  There's no reason to extrapolate out and design a
> >> crazy
> >> >> quickstart page because it will be deleted pretty quickly (we hope)
> >> >>
> >> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
> >> >>
> >> >>> Great. We need more people though to make it a real contest! :) And
> >> more
> >> >>> focus on looks.
> >> >>>
> >> >>> 2010/2/6 Andrew Lombardi 
> >> >>>
> >>  I agree.  I had a few moments tonight and put this together.  It
> >> >> includes
> >>  the standard wicket label "message" showing that Wicket is parsing
> >> >> properly.
> >> 
> >>  It also includes links to: examples, javadoc, books about wicket,
> and
> >>  blogs.  and will show the version you used to install from
> archetype.
> >> 
> >>  Thoughts?  You can click through on the bug and see an attached
> >> >> screenshot
> >> 
> >>  https://issues.apache.org/jira/browse/WICKET-2724
> >> 
> >>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
> >> 
> >> >
> >> > In addition to the examples, I think it would be nice to apply a
> >> >> pleasant
> >>  CSS
> >> > skin to the Wicket quickstart archetype. Instead of an un-styled
> >> > "QuickStart" message, how about a nicely formatted short intro
> with
> >> >> links
> >>  to
> >> > tutorials, reference documentation, etc.?
> >> >
> >> > As an example, I like the "it worked!" welcome page that Django
> >> >> provides:
> >> >
> >> > http://i46.tinypic.com/2q025g9.jpg
> >> >
> >> >
> >> > nino martinez wael wrote:
> >> >>
> >> >> Hi
> >> >>
> >> >> Someone mentioned that we could have a better look & feel for
> >> wicket,
> >> >> since
> >> >> there are no designers in the core team. I proposed a contest, to
> >> make
> >>  the
> >> >> coolest slickest css for wicket. So please feel free to apply.
> >> >>
> >> >>
> >> >> Requirements:
> >> >>
> >> >> your css should be compatible with the basic browsers, Firefox ,
> IE
> >> ,
> >> >> Safari
> >> >> etc. And retain heavy use of embedded js. And it should be a drop
> >> on,
> >> >> using
> >> >> existing id's & hierachy for design.
> >> >>
> >> >> Practical info:
> >> >>
> >> >> The contest ends in 2 months April 2nd.
> >> >>
> >> >> Get the wicket examples here:
> >> >> http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/
> >> >>
> >> >> If you need it you can put your css in svn at wicketstuff, write
> to
> >> >> this
> >> >> list for details on howto get commit rights, you should add your
> css
> >> >> to
> >> >> sandbox and sf user name (
> >> >>
> >> >>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
> >> ).
> >> >>
> >> >> Yes as with all contest there is a prize, you can win the wicket
> >> >> t-shir
> >> >> along with the honor if your css are the winner. This
> >> >> http://www.cafepress.com/apachewicket.317298148 or this
> >> >> http://www.cafepress.com/apachewicket.317298083 depending on
> your

TabbedPanel replaced by AjaxTabbedPanel shows request NS_BINDING_ABORTED

2010-02-08 Thread Kulbhushan Sharma
Hello,

I have the following code to implement a Ajax Tabbed Panel. 

public class TBPage extends WebPage{

public TBPage() {
AjaxTabbedPanel tabPanel = null;
List tabs = new ArrayList(2);

tabs.add(new TabOne());
tabs.add(new TabTwo());

tabPanel = new AjaxTabbedPanel("tabs", tabs);
this.add(tabPanel);


}

}

When I access this page with FireFox and with HTTPFox enabled --- everytime I 
click on a Tab I get NS_BINDING_ABORTED as return status of the request before 
the tab appears. If I just replace AjaxTabbedPanel by TabbedPanel there is no 
such problem --- but obviously the whole page refreshes and I do not want that.

Please note, all functionality works fine --- but I am concerned that this 
error may be root cause of something else. The link 
http://markmail.org/message/m6z77uoixf3qu7u6 tells us some request was aborted 
--- but what is that?

Thanks for your response in advance.

Regards,
Kulbhushan



  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/

Re: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread Martijn Dashorst
I don't like to add more bells and whistles to the quickstart. If we
add graphics, JS and other stuff, you'd have to remove it for every
project. I like the fact that I can grab the quickstart and just start
hacking without having to strip it from superfluous muck.

I do like the changes Kinabalu proposed though: simple, low profile
and removed easily enough.

Martijn

On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
 wrote:
> Design as in graphical. While I do think the changes you made are equally
> important.
>
> The graphical perspective was what begun the contest. It would'nt certainly
> not hurt that the quickstart or the examples looked more slick. However any
> out come are a win-win.
>
> regards Nino
>
> 2010/2/8 Andrew Lombardi 
>
>> Design as in programming?  or design as in graphical?
>>
>> I think the intent I gathered from mbrictson was to put a semi-nicer look
>> on a plain page, and provide useful links for new folks.  Things like the
>> examples which should be perused a lot while first learning Wicket.
>>
>> It's a quickstart, it should take on a tone of simplicity.  Just like the
>> Django quickstart, which doesn't aim to do anything other than shove you in
>> the right direction
>>
>> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
>>
>> > Yeah I know. But some would probably use it as a starting point in design
>> as
>> > well.
>> >
>> > 2010/2/7 Andrew Lombardi 
>> >
>> >> This isn't a modification for all the wicket examples, this is just for
>> the
>> >> maven archetype, the examples are a much larger undertaking.
>> >>
>> >> Focus here was to make it simple, and provide some references that
>> people
>> >> could find useful.  There's no reason to extrapolate out and design a
>> crazy
>> >> quickstart page because it will be deleted pretty quickly (we hope)
>> >>
>> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
>> >>
>> >>> Great. We need more people though to make it a real contest! :) And
>> more
>> >>> focus on looks.
>> >>>
>> >>> 2010/2/6 Andrew Lombardi 
>> >>>
>>  I agree.  I had a few moments tonight and put this together.  It
>> >> includes
>>  the standard wicket label "message" showing that Wicket is parsing
>> >> properly.
>> 
>>  It also includes links to: examples, javadoc, books about wicket, and
>>  blogs.  and will show the version you used to install from archetype.
>> 
>>  Thoughts?  You can click through on the bug and see an attached
>> >> screenshot
>> 
>>  https://issues.apache.org/jira/browse/WICKET-2724
>> 
>>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
>> 
>> >
>> > In addition to the examples, I think it would be nice to apply a
>> >> pleasant
>>  CSS
>> > skin to the Wicket quickstart archetype. Instead of an un-styled
>> > "QuickStart" message, how about a nicely formatted short intro with
>> >> links
>>  to
>> > tutorials, reference documentation, etc.?
>> >
>> > As an example, I like the "it worked!" welcome page that Django
>> >> provides:
>> >
>> > http://i46.tinypic.com/2q025g9.jpg
>> >
>> >
>> > nino martinez wael wrote:
>> >>
>> >> Hi
>> >>
>> >> Someone mentioned that we could have a better look & feel for
>> wicket,
>> >> since
>> >> there are no designers in the core team. I proposed a contest, to
>> make
>>  the
>> >> coolest slickest css for wicket. So please feel free to apply.
>> >>
>> >>
>> >> Requirements:
>> >>
>> >> your css should be compatible with the basic browsers, Firefox , IE
>> ,
>> >> Safari
>> >> etc. And retain heavy use of embedded js. And it should be a drop
>> on,
>> >> using
>> >> existing id's & hierachy for design.
>> >>
>> >> Practical info:
>> >>
>> >> The contest ends in 2 months April 2nd.
>> >>
>> >> Get the wicket examples here:
>> >> http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/
>> >>
>> >> If you need it you can put your css in svn at wicketstuff, write to
>> >> this
>> >> list for details on howto get commit rights, you should add your css
>> >> to
>> >> sandbox and sf user name (
>> >>
>> >> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
>> ).
>> >>
>> >> Yes as with all contest there is a prize, you can win the wicket
>> >> t-shir
>> >> along with the honor if your css are the winner. This
>> >> http://www.cafepress.com/apachewicket.317298148 or this
>> >> http://www.cafepress.com/apachewicket.317298083 depending on your
>> age
>>  :)
>> >>
>> >> Just reply to this thread to enter the contest.
>> >>
>> >> Regards Nino on behalf of the Wicket People
>> >>
>> >>
>> >
>> > --
>> > View this message in context:
>> 
>> >>
>> http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.html
>> > Sent from the Wicket - User ma

Re: How reRender a component from parent page?

2010-02-08 Thread Rangel Preis
My template HTML

http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";>



























  
   



Header.html





//Value that i want to change











Thanks.

2010/2/5 Riyad Kalla :
> What do the tasty HTML bits look like? (wicket:ids and what not)
>
> On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis  wrote:
>> How can I use Ajax to change value from a parent page in my layout. I
>> try to change values in header using a action from content page.
>>
>> I have this:
>>
>>    |---|
>>    |           HEADER           |
>>    |---|
>>    | MENU |   CONTENT   |
>>    |             |                       |
>>    |             |                       |
>>    |             |                       |
>>    |---|---|
>>    |          FOOTER            |
>>    |---|
>>
>> public class MyTemplate{
>>  public MyTemplate() {
>>         super();
>>
>>         this.add(CSSPackageResource.getHeaderContribution(...);
>>
>>         this.add(AbstractTemplatePage.FEEDBACK);
>>
>>         this.addOrReplace(new Header());
>>
>>         this.add(new Menu());
>>
>>         this.add(new Footer());
>>     .
>>
>>
>> public class MyContetPage extends MyTemplate {
>> public MyContetPage(final PageParameters _parameters) {
>> add(new AjaxFallbackLink("rem") {
>>
>>    �...@override
>>     public void onClick(final AjaxRequestTarget target) {
>>         …...
>>      }
>>    });
>> ….
>> }
>> }
>>
>> How change value in the header when i click on the ajaxlink of my content 
>> page?
>>
>> In the onClick i try this; but don't work
>>
>> //some function to change the model value...
>> this.getPage().get("header:component").modelChanged();
>> target.addComponent(this.getPage().get("header:component"));
>>
>> And in my Header.java I override onModelChanged:
>>     protected void onModelChanged() {
>>         super.onModelChanged();
>>         this.addOrReplace(component).setOutputMarkupId(true));
>>     }
>>
>> Thanks all.
>>
>> -
>> 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: [announce] better look & modern css for wicket examples contest

2010-02-08 Thread nino martinez wael
Design as in graphical. While I do think the changes you made are equally
important.

The graphical perspective was what begun the contest. It would'nt certainly
not hurt that the quickstart or the examples looked more slick. However any
out come are a win-win.

regards Nino

2010/2/8 Andrew Lombardi 

> Design as in programming?  or design as in graphical?
>
> I think the intent I gathered from mbrictson was to put a semi-nicer look
> on a plain page, and provide useful links for new folks.  Things like the
> examples which should be perused a lot while first learning Wicket.
>
> It's a quickstart, it should take on a tone of simplicity.  Just like the
> Django quickstart, which doesn't aim to do anything other than shove you in
> the right direction
>
> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
>
> > Yeah I know. But some would probably use it as a starting point in design
> as
> > well.
> >
> > 2010/2/7 Andrew Lombardi 
> >
> >> This isn't a modification for all the wicket examples, this is just for
> the
> >> maven archetype, the examples are a much larger undertaking.
> >>
> >> Focus here was to make it simple, and provide some references that
> people
> >> could find useful.  There's no reason to extrapolate out and design a
> crazy
> >> quickstart page because it will be deleted pretty quickly (we hope)
> >>
> >> On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
> >>
> >>> Great. We need more people though to make it a real contest! :) And
> more
> >>> focus on looks.
> >>>
> >>> 2010/2/6 Andrew Lombardi 
> >>>
>  I agree.  I had a few moments tonight and put this together.  It
> >> includes
>  the standard wicket label "message" showing that Wicket is parsing
> >> properly.
> 
>  It also includes links to: examples, javadoc, books about wicket, and
>  blogs.  and will show the version you used to install from archetype.
> 
>  Thoughts?  You can click through on the bug and see an attached
> >> screenshot
> 
>  https://issues.apache.org/jira/browse/WICKET-2724
> 
>  On Feb 2, 2010, at 11:26 AM, mbrictson wrote:
> 
> >
> > In addition to the examples, I think it would be nice to apply a
> >> pleasant
>  CSS
> > skin to the Wicket quickstart archetype. Instead of an un-styled
> > "QuickStart" message, how about a nicely formatted short intro with
> >> links
>  to
> > tutorials, reference documentation, etc.?
> >
> > As an example, I like the "it worked!" welcome page that Django
> >> provides:
> >
> > http://i46.tinypic.com/2q025g9.jpg
> >
> >
> > nino martinez wael wrote:
> >>
> >> Hi
> >>
> >> Someone mentioned that we could have a better look & feel for
> wicket,
> >> since
> >> there are no designers in the core team. I proposed a contest, to
> make
>  the
> >> coolest slickest css for wicket. So please feel free to apply.
> >>
> >>
> >> Requirements:
> >>
> >> your css should be compatible with the basic browsers, Firefox , IE
> ,
> >> Safari
> >> etc. And retain heavy use of embedded js. And it should be a drop
> on,
> >> using
> >> existing id's & hierachy for design.
> >>
> >> Practical info:
> >>
> >> The contest ends in 2 months April 2nd.
> >>
> >> Get the wicket examples here:
> >> http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/
> >>
> >> If you need it you can put your css in svn at wicketstuff, write to
> >> this
> >> list for details on howto get commit rights, you should add your css
> >> to
> >> sandbox and sf user name (
> >>
> >> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
> ).
> >>
> >> Yes as with all contest there is a prize, you can win the wicket
> >> t-shir
> >> along with the honor if your css are the winner. This
> >> http://www.cafepress.com/apachewicket.317298148 or this
> >> http://www.cafepress.com/apachewicket.317298083 depending on your
> age
>  :)
> >>
> >> Just reply to this thread to enter the contest.
> >>
> >> Regards Nino on behalf of the Wicket People
> >>
> >>
> >
> > --
> > View this message in context:
> 
> >>
> http://old.nabble.com/-announce--better-look---modern-css-for-wicket-examples-contest-tp27425107p27426016.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 our success!
> 
>  Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> 
>  ANDREW LOMBARDI | and...@mysticcoders.com
>  2321 E 4th St. Ste C-128, Santa Ana CA 92705
>  ofc: 714-816-4488
>  fax: 714-782-6024
>  cell: 714-697-8046
>  linke

Re: Wicket Layout

2010-02-08 Thread Ernesto Reinaldo Barreiro
Hi Josh,

In general it is very easy to encapsulate existing JavaScrip components with
Wikcet... I think it would be very easy to integrate this example [1] of
layout manager into your application.

Best,

Ernesto

References.

[1]-http://layout.jquery-dev.net/documentation.cfm#Example

On Mon, Feb 8, 2010 at 6:42 AM, Josh Kamau  wrote:

> Hi guys;
>
> I think wicket is the best java web framework out there. However , i really
> would like be to able to create a layout like this :
> http://demos.dojotoolkit.org/demos/mail/
>
> Does the current dojo integration support this. Is it possible to create
> such a layout with vanilla  wicket?
>
> regards.
>
> Josh
>