Re: Offline capable web application

2010-02-19 Thread Igor Vaynberg
i just dont see the point of wrapping a page made up of gwt components
in wicket wrappers. the *entire* front end has to live on the frontend
in order for the application to work offline...so whats the point?
anyways my two cents.

cheers,
-igor

On Fri, Feb 19, 2010 at 9:43 PM, Eelco Hillenius
 wrote:
> On Fri, Feb 19, 2010 at 9:30 PM, Igor Vaynberg  
> wrote:
>> having data only on the client will not help you unless you also have
>> behavior. these kinds of apps are really only feasible when you use a
>> clientside framework like gwt.
>
> Any components you write wouldn't use the typical client/ server
> interaction that regular Wicket components do, but I don't see why you
> wouldn't be able to write a wrapper around this functionality so that
> at least you'd be able to use such functionality within a Wicket
> application.
>
> FWIW, I'm currently coding in GWT, something I really looked forward
> to, because like most coders I like change, but man, I miss Wicket's
> productivity. It's not a bad framework, but imho it's hard to beat
> Wicket when it comes to churning out and integrating components.
>
> Eelco
>
> -
> 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: Offline capable web application

2010-02-19 Thread Eelco Hillenius
On Fri, Feb 19, 2010 at 9:30 PM, Igor Vaynberg  wrote:
> having data only on the client will not help you unless you also have
> behavior. these kinds of apps are really only feasible when you use a
> clientside framework like gwt.

Any components you write wouldn't use the typical client/ server
interaction that regular Wicket components do, but I don't see why you
wouldn't be able to write a wrapper around this functionality so that
at least you'd be able to use such functionality within a Wicket
application.

FWIW, I'm currently coding in GWT, something I really looked forward
to, because like most coders I like change, but man, I miss Wicket's
productivity. It's not a bad framework, but imho it's hard to beat
Wicket when it comes to churning out and integrating components.

Eelco

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



Re: Offline capable web application

2010-02-19 Thread Igor Vaynberg
having data only on the client will not help you unless you also have
behavior. these kinds of apps are really only feasible when you use a
clientside framework like gwt.

-igor

On Fri, Feb 19, 2010 at 9:10 PM, Eelco Hillenius
 wrote:
>> I am working on an application that i want to enable to work offline. I want
>> to use wicket for this. Any ideas. I would like uses to fill and submit
>> forms even when working offline and then the data is synchronised later. Is
>> it possible? all manner of suggestions/links are welcome.
>
> Isn't that all a matter of making clients smart? If you'd do it
> without a web framework you'd use a local (client side) data store,
> and have a mechanism to synchronize data later. Whatever you would
> write can be wrapped as Wicket components. It might even be feasible -
> though I'm not saying easy per se- to create generic components for
> this, but I'm not that familiar with the new HTML (or now deprecated
> Google Gear) functionality to say for sure. Just a hunch that a
> capable coder should be able to do it :-)
>
> Eelco
>
> -
> 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: [OT] Wicket changed my life !

2010-02-19 Thread Ben Tilford
Models are the hardest part to learn...

Because they are really models.

On Sat, Feb 20, 2010 at 12:05 AM, Eelco Hillenius  wrote:

> Thanks for the kind words people. Definitively a key part of Wicket's
> success has been an enthusiastic community.
>
> > The learning curve was slightly steep once we started doing interesting
> UI
> > interactions (and also that really annoying LazyLoad exception during
> tests
> > that I still can't figure out), but it's worth the effort.
>
> Detachable models are your friend.
>
> Eelco
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: (Form) Use two TextFields for one object property? (SOLVED)

2010-02-19 Thread Eelco Hillenius
> A thousand thanks. Works like a charm.
> Though I don't fully understand how the values are
> passed through the components/models.

It's three components, one parent (that holds the ultimate value) and
two children (that both hold values used to calculate the parent
value.

> convertinput() {
>int mins=minutes.getconvertedinput();
>int secs=seconds.getconvertedinput();
>setconvertedinput(mins*60+secs);
> }

updates the parent (setConvertedInput) with one value that comes from
the minutes and seconds fields.

Eelco

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



Re: Offline capable web application

2010-02-19 Thread Eelco Hillenius
> I am working on an application that i want to enable to work offline. I want
> to use wicket for this. Any ideas. I would like uses to fill and submit
> forms even when working offline and then the data is synchronised later. Is
> it possible? all manner of suggestions/links are welcome.

Isn't that all a matter of making clients smart? If you'd do it
without a web framework you'd use a local (client side) data store,
and have a mechanism to synchronize data later. Whatever you would
write can be wrapped as Wicket components. It might even be feasible -
though I'm not saying easy per se- to create generic components for
this, but I'm not that familiar with the new HTML (or now deprecated
Google Gear) functionality to say for sure. Just a hunch that a
capable coder should be able to do it :-)

Eelco

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



Re: [OT] Wicket changed my life !

2010-02-19 Thread Eelco Hillenius
Thanks for the kind words people. Definitively a key part of Wicket's
success has been an enthusiastic community.

> The learning curve was slightly steep once we started doing interesting UI
> interactions (and also that really annoying LazyLoad exception during tests
> that I still can't figure out), but it's worth the effort.

Detachable models are your friend.

Eelco

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



Upload to Resource

2010-02-19 Thread Karl M. Davis
Howdy all, 

In the Wicket API, is there any way to have something other than a Form that 
can receive and process file uploads? Specifically: can a Resource accept form 
POSTs for file uploads? 

I ask because I'm trying to wrap the SWFUpload Shockwave applet in a Wicket 
component. Asking about it on the IRC channel, Igor mentioned I should "create 
a Resource that can receive the upload." I took a look through the code for 
Resource and its subclasses and I can't see any hooks in the API that would 
allow this. 

Am I missing something in the API? If not, I suppose I can poke around at the 
raw ServletRequest and try to extract the POST manually from there. Anyone know 
of any examples on how to go about that? 

Thanks very much, 
Karl 

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



Re: (Form) Use two TextFields for one object property? (SOLVED)

2010-02-19 Thread srm
> class lengthtextfield extends formcomponentpanel {
> private final textfield minutes;
> private final textfield seconds;
> 
> public lengthtextfield(string id, imodel model) {
>  super(id, model);
>  minutes=new textfield("min",new model(model.getobject()/60),integer.class);
>  seconds=new textfield("min",new model(model.getobject()%60),integer.class);
> }
> 
> convertinput() {
>int mins=minutes.getconvertedinput();
>int secs=seconds.getconvertedinput();
>setconvertedinput(mins*60+secs);
> }
> }
> 
> : type="text" wicket:id="seconds"/>
> 
> -igor
> 

A thousand thanks. Works like a charm.
Though I don't fully understand how the values are
passed through the components/models.

Regards,
Stephan

> On Thu, Feb 18, 2010 at 2:02 PM, srm  wrote:
>> 
>> Am 18.02.2010 um 22:56 schrieb Andrew Lombardi:
>> 
>>> It depends what your domain object looks like, if it's just a simple string 
>>> you'll have to save the results of those two textfield's in their own 
>>> model, and then merge them in the onSubmit method.
>>> 
>> 
>> It's a int property. I was thinking about using the onSubmit method but
>> how will this interfere with the PropertyModel setting the value according to
>> TextField's value? Does this happen before onSubmit or after onSubmit?
>> 
>> If that happens before, I surely can overwrite the DO's property (set via the
>> PropertyModel) in the onSubmit().
>> 
>> Regards,
>> Stephan
>> 
>>> On Feb 18, 2010, at 1:41 PM, srm wrote:
>>> 
 Hi List,
 
 the following may looked flawed, so I'm happy to hear your suggestions: I 
 have a RegisterNewItem Form where a user can add new Items to a 
 shop/database. I have items of type CD (audiocd) with an attribute 
 PlayTime. I store this value as seconds and calculate the minutes to 
 display at runtime. For adding a new CD, I thought that it would be 
 inconvenient to have the user entering either seconds only, or how to 
 agree on a format like Min:Sec OR Min.Sec etc. My idea now is to provide 
 two textFields, one for the minutes and one for the additional seconds. 
 Now I have no idea how to properly use the model of the textfields and the 
 item-object, to calculate the seconds from both fields at submit time. Any 
 help appreciated.
 
 Please see the code from the Panel below (currently without a textfield 
 for the playtime).
 
 Regards,
 Stephan
 
 
 public class AddCDPanel extends AddItemPanel {
 
 
  /**
   * auto-generated UID
   */
  private static final long serialVersionUID = 5390579612171776545L;
 
  public AddCDPanel(String id) {
  super(id, new CD());
 
  TextField labelTextField = new TextField("label", new 
 PropertyModel(itemToInsert,"label"));
  FeedbackLabel labelFeedback = new 
 FeedbackLabel("label.feedback", labelTextField);
  addItemForm.add(labelTextField.setRequired(true));
  addItemForm.add(labelFeedback);
 
  TextField artistTextField = new TextField("artist", new 
 PropertyModel(itemToInsert,"artist"));
  FeedbackLabel artistFeedback = new 
 FeedbackLabel("artist.feedback", artistTextField);
  addItemForm.add(artistTextField.setRequired(true));
  addItemForm.add(artistFeedback);
 
  }
 }
 
 
 -
 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
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For a

Re: Palette: access selected/clicked item

2010-02-19 Thread minusquampefekt

thanks a lot mike!



Am 19.02.2010 22:12, schrieb Michael O'Cleirigh:

Hello,

I'm not sure if the Palette is the best component to support what you 
are looking for.


Have you considered using a DropDownChoice (which makes finding the 
selected item trivial) and then using a DataTable to show the 
'selected' items?


Here is another approach with the Palette to add in an onclick event 
to each of the 's that render in the choices component:


1. Palette.newChoicesComponent() creates a Choices object.  
Choices inherits from AbstractChoice which has this method:

@SuppressWarnings("unchecked")
@Override
protected void onComponentTagBody(MarkupStream markupStream, 
ComponentTag openTag)


At the bottom of the method it does:

buffer.append("\nMap additionalAttributesMap = 
getAdditionalAttributes(choice);

if (additionalAttributesMap != null)
{
for (String s : additionalAttributesMap.keySet())
{
buffer.append(" " + s + "=\"" + 
additionalAttributesMap.get(s) + "\"");

}
}

buffer.append(">").append(value).append("");


I think this is the place to add in the "onclick" -> AJAX callback.

2. You can setup the Map for each choice by overriding the 
Palette.getAdditionalAttributesForChoices(T option) method.



I think something like:

new Palette("p", choices, renderer, 5, true) {

/* (non-Javadoc)
 * @see 
org.apache.wicket.extensions.markup.html.form.palette.Palette#getAdditionalAttributesForChoices(T) 


 */
@Override
protected Map 
getAdditionalAttributesForChoices(

T choice) {

Mapmap = new LinkedHashMapString>();


map.put("onclick", createAjaxCallback(choice));
return map;
}

So each option might have its own ajax behaviour or a common one with 
a URL parameter that represents the clicked option.


When the ajax behaviour is activated you can update your image 
accordingly.


Regards,

Mike

Unfortunately your suggestion doesnt' work. That is because the 
"onchange" event only fires if i move an item from the left to the 
right box or vice versa. what i want is to get a notification when an 
item is clicked, not when it's moved. I managed to receive this 
notification by registering a onclick listener with the 
'choicesComponent' as shown in the code of my inital mail.
My problem is that i want to find out which precise item has been 
selected and use that information to get hold of the corresponding 
data object (in my case MediaItem) which contains a property 
'filename'. This property i want to feed into an Image component to 
have it display the corresponding image to the selected item in the 
Palette.



Am 19.02.2010 14:34, schrieb Michael O'Cleirigh:
getRecorderComponent().add(new 
FormComponentUpdatingBehavior("onchange"){


protected void onUpdate(AjaxRequestTarget 
target) {

/**
  I imagine something like this should 
do the trick, but i can't find anything like it:


  Media m = getSelectedItem();
  imgPanel.setFilname(m.getFileName());
*/

Iterator selectedChoices = 
myPalette.getSelectedChoices();


// let the image panel do something with 
the selected choices.

target.addComponent(imgPanel);

}); 



-
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: Palette: access selected/clicked item

2010-02-19 Thread Michael O'Cleirigh

Hello,

I'm not sure if the Palette is the best component to support what you 
are looking for.


Have you considered using a DropDownChoice (which makes finding the 
selected item trivial) and then using a DataTable to show the 'selected' 
items?


Here is another approach with the Palette to add in an onclick event to 
each of the 's that render in the choices component:


1. Palette.newChoicesComponent() creates a Choices object.  
Choices inherits from AbstractChoice which has this method:

@SuppressWarnings("unchecked")
@Override
protected void onComponentTagBody(MarkupStream markupStream, 
ComponentTag openTag)


At the bottom of the method it does:

buffer.append("\nMap additionalAttributesMap = 
getAdditionalAttributes(choice);

if (additionalAttributesMap != null)
{
for (String s : additionalAttributesMap.keySet())
{
buffer.append(" " + s + "=\"" + 
additionalAttributesMap.get(s) + "\"");

}
}

buffer.append(">").append(value).append("");


I think this is the place to add in the "onclick" -> AJAX callback.

2. You can setup the Map for each choice by overriding the 
Palette.getAdditionalAttributesForChoices(T option) method.



I think something like:

new Palette("p", choices, renderer, 5, true) {

/* (non-Javadoc)
 * @see 
org.apache.wicket.extensions.markup.html.form.palette.Palette#getAdditionalAttributesForChoices(T)

 */
@Override
protected Map 
getAdditionalAttributesForChoices(

T choice) {

Mapmap = new LinkedHashMapString>();


map.put("onclick", createAjaxCallback(choice));
return map;
}

So each option might have its own ajax behaviour or a common one with a 
URL parameter that represents the clicked option.


When the ajax behaviour is activated you can update your image accordingly.

Regards,

Mike

Unfortunately your suggestion doesnt' work. That is because the 
"onchange" event only fires if i move an item from the left to the 
right box or vice versa. what i want is to get a notification when an 
item is clicked, not when it's moved. I managed to receive this 
notification by registering a onclick listener with the 
'choicesComponent' as shown in the code of my inital mail.
My problem is that i want to find out which precise item has been 
selected and use that information to get hold of the corresponding 
data object (in my case MediaItem) which contains a property 
'filename'. This property i want to feed into an Image component to 
have it display the corresponding image to the selected item in the 
Palette.



Am 19.02.2010 14:34, schrieb Michael O'Cleirigh:
getRecorderComponent().add(new 
FormComponentUpdatingBehavior("onchange"){


protected void onUpdate(AjaxRequestTarget 
target) {

/**
  I imagine something like this should do 
the trick, but i can't find anything like it:


  Media m = getSelectedItem();
  imgPanel.setFilname(m.getFileName());
*/

Iterator selectedChoices = 
myPalette.getSelectedChoices();


// let the image panel do something with 
the selected choices.

target.addComponent(imgPanel);

}); 



-
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



DateField problem

2010-02-19 Thread Gatos
Hello,

I have a strange problem if I enter to a date field date, from example
2.3.2110 then it will be converted to 2.3.10.

Does anyone know how to solve the problem?

Thank you


Re: Nested Forms

2010-02-19 Thread Igor Vaynberg
you cannot have an "isolated embedded form", as far as html is
concerned that is an oxymoron. you can try hacking around it with
IFormVisitorParticipant or by overriding form.process() on your main
form, etc. but i do not think this is a usecase we will support...

-igor


On Fri, Feb 19, 2010 at 10:09 AM, Charles Deal  wrote:
> I'm sorry to bump this.  At the least, can anyone point me to some code that
> has successfully implemented isolated, nested forms using Wicket 1.4.x?
>
>
> On Wed, Feb 17, 2010 at 8:43 AM, Charles Deal 
> wrote:
>
>> I am attempting to put an isolated form within the main form of my page.  I
>> found http://cwiki.apache.org/WICKET/nested-forms.html which was helpful
>> in understanding how the processing works.  I was even more excited when I
>> found http://cwiki.apache.org/WICKET/conditional-validation.html which
>> instructed me exactly how to alter the form object to do what I wanted.
>>  Unfortunately, the trick does not work as I expected it to.
>>
>> It seems that if I simply implement
>> IFormVisitorParticipant.processChildren, it is not enough to stop the Nested
>> form's FormValidator from firing when the main form is submitted.
>>  Therefore, I tried to implement the isEnabled technique.  This did have the
>> desired effect the first time through a page (enter data, submit main, no
>> nested validator fires) but when the page re-renders after the submit, the
>> nested form is now disabled!  It seems that the findSubmittingButton()
>> method finds the button that was used to submit the form, even though the
>> page is rendering again.
>>
>> Another thing I noticed upon my different attempts is that altering the
>> isEnabled method to use findSubmittingButton() won't work because
>> findSubmittingButton() calls isEnabled()! which puts the code in an infinite
>> loop.
>>
>> Could someone please enlighten me on how to code an isolated nested form
>> using Wicket 1.4.x.  Where isolated means that I want the form to have its
>> own submit button and those fields are only submitted/processed/validated
>> when that button is clicked.  I want the form to be ignored by the parent
>> form.
>>
>>
>> 
>> 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: Nested Forms

2010-02-19 Thread Charles Deal
I'm sorry to bump this.  At the least, can anyone point me to some code that
has successfully implemented isolated, nested forms using Wicket 1.4.x?


On Wed, Feb 17, 2010 at 8:43 AM, Charles Deal wrote:

> I am attempting to put an isolated form within the main form of my page.  I
> found http://cwiki.apache.org/WICKET/nested-forms.html which was helpful
> in understanding how the processing works.  I was even more excited when I
> found http://cwiki.apache.org/WICKET/conditional-validation.html which
> instructed me exactly how to alter the form object to do what I wanted.
>  Unfortunately, the trick does not work as I expected it to.
>
> It seems that if I simply implement
> IFormVisitorParticipant.processChildren, it is not enough to stop the Nested
> form's FormValidator from firing when the main form is submitted.
>  Therefore, I tried to implement the isEnabled technique.  This did have the
> desired effect the first time through a page (enter data, submit main, no
> nested validator fires) but when the page re-renders after the submit, the
> nested form is now disabled!  It seems that the findSubmittingButton()
> method finds the button that was used to submit the form, even though the
> page is rendering again.
>
> Another thing I noticed upon my different attempts is that altering the
> isEnabled method to use findSubmittingButton() won't work because
> findSubmittingButton() calls isEnabled()! which puts the code in an infinite
> loop.
>
> Could someone please enlighten me on how to code an isolated nested form
> using Wicket 1.4.x.  Where isolated means that I want the form to have its
> own submit button and those fields are only submitted/processed/validated
> when that button is clicked.  I want the form to be ignored by the parent
> form.
>
>
> 
> 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: If IE comments

2010-02-19 Thread kellerautomat


Add this behaviour to a StyleSheetReference.


private final class IEOnlyBehaviour extends AbstractBehavior {
private int version;

public IEOnlyBehaviour(int version) {
this.version = version;
}

@Override
public void beforeRender(Component component) {
component.getResponse().write("");
}
}




Neil Curzon wrote:
> 
> Hi all,
> 
> We're currently migrating some legacy HTML pages into a sexy Wicket app.
> Unfortunately, the pages use a few  sections for
> browser compatibility. Sometimes this caused mismatched tags, as in the
> following example:
> 
>  
> ...blahblah...
> 
> 
> Ie we close a tag for IE 6 in one place, and other browsers in a different
> place. We're not sure whether this is the best way to accomplish the goal,
> but the site is tested and working, so we'd rather just make the final
> HTML
> output the same rather than test a new version in different browsers.
> 
> This causes wicket errors because of unmatched tags (for some reason the
>   seems to be interpreted despite the fact that it's inside an HTML
> comment, which I don't really understand). Has anybody found a good
> approach
> to outputting if ie comments?
> 
> Thanks,
> Neil
> 
> 

-- 
View this message in context: 
http://old.nabble.com/If-IE-comments-tp26205227p27657101.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: Offline capable web application

2010-02-19 Thread Jeremy Thomerson
What you describe here is different than what was implied by your first
comment.

What you now seem to be asking is this.  Please verify:

You have multiple install sites (satellite offices, etc), and each of them
has a server that runs the application on its own.  Users from that location
will connect to that server (i.e. users in the Dallas office connect to the
Dallas server, NYC users to the NYC server, etc).  You want Dallas to be
able to go "offline" - that is, disconnected from NYC, but you want the
Dallas users to still be able to use their application at their location
while the two offices are disconnected from each other.

If this is the case, then it's not a Wicket question - it's a database
question.  Basically you need a database that will handle multiple master
configuration where one master is still able to function without
connectivity to the second.  I haven't looked at this for quite some time,
but I'm sure you can find some resources out there describing it.  I know at
ApacheCon last year, the CouchDB guys were promoting the fact that you can
use CouchDB in such a situation.  However, I'll warn you that if you come
from a typical relational database background, CouchDB may not be your cup
of tea - and you'd probably have a hard time selling it within your
company.  You'll just need to find someway of doing multi-master replication
with a traditional DB server.

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



On Fri, Feb 19, 2010 at 7:38 AM, Josh Kamau  wrote:

> I was thinking that i could install the same application on each site, then
> have the databases synchronized somehow. My CTO will have me for lunch if i
> suggest this.
>
> On Fri, Feb 19, 2010 at 4:26 PM, Frank Silbermann <
> frank.silberm...@fedex.com> wrote:
>
> > Any application that executes _offline_ is not a _web_ application --
> > unless the system consists of a stand-alone application containing a web
> > server that runs on the client (e.g. via jetty) so that both client and
> > server are running on the same box.
> >
> > Theoretically, a Wicket application that runs on a jetty server on the
> > client could synchronize itself, when possible, via non-Wicket web
> > services that run on the server.
> >
> > But why go that route?  I'd build just an ordinary stand-alone client
> > application, e.g. using Java WebStart and Swing, that could optionally
> > connect to the server.  There's no need for Wicket on the server, since
> > the client would provide the user interface.  (The client would have to
> > do that, if it were to be able to run stand-alone.)
> >
> >
> > -Original Message-
> > From: Josh Kamau [mailto:joshnet2...@gmail.com]
> > Sent: Friday, February 19, 2010 7:05 AM
> > To: users@wicket.apache.org
> > Subject: Offline capable web application
> >
> > Hi guys;
> >
> > I am working on an application that i want to enable to work offline. I
> > want
> > to use wicket for this. Any ideas. I would like uses to fill and submit
> > forms even when working offline and then the data is synchronised later.
> > Is
> > it possible? all manner of suggestions/links are welcome.
> >
> > Regards.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Palette: access selected/clicked item

2010-02-19 Thread minusquampefekt
Unfortunately your suggestion doesnt' work. That is because the 
"onchange" event only fires if i move an item from the left to the right 
box or vice versa. what i want is to get a notification when an item is 
clicked, not when it's moved. I managed to receive this notification by 
registering a onclick listener with the 'choicesComponent' as shown in 
the code of my inital mail.
My problem is that i want to find out which precise item has been 
selected and use that information to get hold of the corresponding data 
object (in my case MediaItem) which contains a property 'filename'. This 
property i want to feed into an Image component to have it display the 
corresponding image to the selected item in the Palette.



Am 19.02.2010 14:34, schrieb Michael O'Cleirigh:

getRecorderComponent().add(new FormComponentUpdatingBehavior("onchange"){

protected void onUpdate(AjaxRequestTarget 
target) {

/**
  I imagine something like this should do 
the trick, but i can't find anything like it:


  Media m = getSelectedItem();
  imgPanel.setFilname(m.getFileName());
*/

Iterator selectedChoices = 
myPalette.getSelectedChoices();


// let the image panel do something with 
the selected choices.

target.addComponent(imgPanel);

}); 



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



Re: If IE comments

2010-02-19 Thread orden

You may be interested by my code: it's adding IE only CSS in the header. You
just have to add it to the page.

public class IEStylesheetHeaderContributor extends AbstractBehavior
implements IHeaderContributor{

private final ResourceReference ref;

public IEStylesheetHeaderContributor(ResourceReference ref) {
this.ref = ref;
}

public void renderHead(IHeaderResponse response){
response.renderString("");
}
}
-- 
View this message in context: 
http://old.nabble.com/If-IE-comments-tp26205227p27652623.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: Offline capable web application

2010-02-19 Thread Josh Kamau
I was thinking that i could install the same application on each site, then
have the databases synchronized somehow. My CTO will have me for lunch if i
suggest this.

On Fri, Feb 19, 2010 at 4:26 PM, Frank Silbermann <
frank.silberm...@fedex.com> wrote:

> Any application that executes _offline_ is not a _web_ application --
> unless the system consists of a stand-alone application containing a web
> server that runs on the client (e.g. via jetty) so that both client and
> server are running on the same box.
>
> Theoretically, a Wicket application that runs on a jetty server on the
> client could synchronize itself, when possible, via non-Wicket web
> services that run on the server.
>
> But why go that route?  I'd build just an ordinary stand-alone client
> application, e.g. using Java WebStart and Swing, that could optionally
> connect to the server.  There's no need for Wicket on the server, since
> the client would provide the user interface.  (The client would have to
> do that, if it were to be able to run stand-alone.)
>
>
> -Original Message-
> From: Josh Kamau [mailto:joshnet2...@gmail.com]
> Sent: Friday, February 19, 2010 7:05 AM
> To: users@wicket.apache.org
> Subject: Offline capable web application
>
> Hi guys;
>
> I am working on an application that i want to enable to work offline. I
> want
> to use wicket for this. Any ideas. I would like uses to fill and submit
> forms even when working offline and then the data is synchronised later.
> Is
> it possible? all manner of suggestions/links are welcome.
>
> Regards.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Offline capable web application

2010-02-19 Thread Hauke Ingmar Schmidt
Hej,

2010/2/19 Frank Silbermann :
> Any application that executes _offline_ is not a _web_ application --
> unless the system consists of a stand-alone application containing a web
> server that runs on the client (e.g. via jetty) so that both client and
> server are running on the same box.

That is a very strict definition that doesn't include hybrid
applications using Google Gears or a combination of HTML5 and
JavaScript.
I think the definition is too strict.

> Theoretically, a Wicket application that runs on a jetty server on the
> client could synchronize itself, when possible, via non-Wicket web
> services that run on the server.
>
> But why go that route?  I'd build just an ordinary stand-alone client
> application, e.g. using Java WebStart and Swing, that could optionally
> connect to the server.  There's no need for Wicket on the server, since
> the client would provide the user interface.  (The client would have to
> do that, if it were to be able to run stand-alone.)

Building an application two times with different technology does not
feel like a very efficient way. But I would guess that Wicket's server
side state approach works contrary to the technologies used for
building offline web applications.

Bye
Hauke Ingmar

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



Re: Palette: access selected/clicked item

2010-02-19 Thread Michael O'Cleirigh

Hello,

Inside the Palette there is a Recorder which is basically a 
customized HiddenField that holds the id of each selected element.



/**
 * Returns recorder component. Recorder component is a form 
component used to track the
 * selection of the palette. It receives onchange 
javascript event whenever a

 * change in selection occurs.
 *
 * @return recorder component
 */
public final Recorder getRecorderComponent()
{
return recorderComponent;
}

So myPalette.getRecorderComponent().add(new 
FormComponentUpdatingBehavior("onchange"){


protected void onUpdate(AjaxRequestTarget 
target) {

/**
  I imagine something like this should do 
the trick, but i can't find anything like it:


  Media m = getSelectedItem();
  imgPanel.setFilname(m.getFileName());
*/

Iterator selectedChoices = 
myPalette.getSelectedChoices();


// let the image panel do something with 
the selected choices.

target.addComponent(imgPanel);

});

This should give you what you want.

Regards,

Mike
i have some trouble to access the currently selected item of a Palette 
component. By selected i mean the item which is highlighted if  a user 
clicks on any of the items within the palette. i need that access 
because i want to update an Image component which renders an image 
which reflects the selected item


here is the (simplified) piece of code i use to get notified if the 
palette is clicked:


final Palette palette = new Palette("palette", mediaModel, 
paletteModel , renderer, 10, true) {
private static final long serialVersionUID = 
-5683120408447757525L;


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

getChoicesComponent().add(new 
AjaxFormComponentUpdatingBehavior("onclick") {
private static final long serialVersionUID = 
-6216894553871444828L;


@Override
protected void onUpdate(AjaxRequestTarget 
target) {

/**
  I imagine something like this should do 
the trick, but i can't find anything like it:


  Media m = getSelectedItem();
  imgPanel.setFilname(m.getFileName());
*/
target.addComponent(imgPanel);
}
});
}
};


max


-
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: Offline capable web application

2010-02-19 Thread James Carman
Since Wicket stores state on the server side in the session (and page
store), I'd say you're going to have a rough time with this one.  This
has been discussed before:

http://markmail.org/message/pkzmsbmtppg72abg


On Fri, Feb 19, 2010 at 8:04 AM, Josh Kamau  wrote:
> Hi guys;
>
> I am working on an application that i want to enable to work offline. I want
> to use wicket for this. Any ideas. I would like uses to fill and submit
> forms even when working offline and then the data is synchronised later. Is
> it possible? all manner of suggestions/links are welcome.
>
> Regards.
>

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



RE: Offline capable web application

2010-02-19 Thread Frank Silbermann
Any application that executes _offline_ is not a _web_ application --
unless the system consists of a stand-alone application containing a web
server that runs on the client (e.g. via jetty) so that both client and
server are running on the same box.

Theoretically, a Wicket application that runs on a jetty server on the
client could synchronize itself, when possible, via non-Wicket web
services that run on the server.

But why go that route?  I'd build just an ordinary stand-alone client
application, e.g. using Java WebStart and Swing, that could optionally
connect to the server.  There's no need for Wicket on the server, since
the client would provide the user interface.  (The client would have to
do that, if it were to be able to run stand-alone.)


-Original Message-
From: Josh Kamau [mailto:joshnet2...@gmail.com] 
Sent: Friday, February 19, 2010 7:05 AM
To: users@wicket.apache.org
Subject: Offline capable web application

Hi guys;

I am working on an application that i want to enable to work offline. I
want
to use wicket for this. Any ideas. I would like uses to fill and submit
forms even when working offline and then the data is synchronised later.
Is
it possible? all manner of suggestions/links are welcome.

Regards.

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



Re: Offline capable web application

2010-02-19 Thread Josh Kamau
Any way of integrating Google Gears or apache derby DB ?


On Fri, Feb 19, 2010 at 4:04 PM, Josh Kamau  wrote:

> Hi guys;
>
> I am working on an application that i want to enable to work offline. I
> want to use wicket for this. Any ideas. I would like uses to fill and submit
> forms even when working offline and then the data is synchronised later. Is
> it possible? all manner of suggestions/links are welcome.
>
> Regards.
>


Offline capable web application

2010-02-19 Thread Josh Kamau
Hi guys;

I am working on an application that i want to enable to work offline. I want
to use wicket for this. Any ideas. I would like uses to fill and submit
forms even when working offline and then the data is synchronised later. Is
it possible? all manner of suggestions/links are welcome.

Regards.


Re: Create Wikcet Filter

2010-02-19 Thread nicolas melendez
Here an example :


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">

*WicketFilter*
org.apache.wicket.protocol.http.*WicketFilter*


applicationClassName
nm.mp3rapidshare.WicketApplication





*WicketFilter*
/*



NM


On Fri, Feb 19, 2010 at 3:19 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Would you like to ask something or are you just fine?
>
> 2010/2/18 "Matías G. Tito" :
> > I'm loking for creatting a basic wicket filter for "/"
> >
> > -
> > 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
>
>


Palette: access selected/clicked item

2010-02-19 Thread minusquampefekt

hi fellow wicket users,

i have some trouble to access the currently selected item of a Palette 
component. By selected i mean the item which is highlighted if  a user 
clicks on any of the items within the palette. i need that access 
because i want to update an Image component which renders an image which 
reflects the selected item


here is the (simplified) piece of code i use to get notified if the 
palette is clicked:


final Palette palette = new Palette("palette", mediaModel, paletteModel 
, renderer, 10, true) {
private static final long serialVersionUID = 
-5683120408447757525L;


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

getChoicesComponent().add(new 
AjaxFormComponentUpdatingBehavior("onclick") {
private static final long serialVersionUID = 
-6216894553871444828L;


@Override
protected void onUpdate(AjaxRequestTarget target) {
/**
  I imagine something like this should do 
the trick, but i can't find anything like it:


  Media m = getSelectedItem();
  imgPanel.setFilname(m.getFileName());
*/
target.addComponent(imgPanel);
}
});
}
};


max


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



Re: Ajax and OpenSessionInViewFilter problems

2010-02-19 Thread Bert
I had/have this problem too. Right now i use serializable hibernate objects
together with an IModel implementation that does not detach the object.

Object are serialized into the session and when the user presses the save
button the objects are reattached  to the current hibernate session
and committed.

bert

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



Re: [OT] Wicket changed my life !

2010-02-19 Thread Leon Nieuwoudt
We just did an initial presentation to a high profile client for our first
Wicket-based app (previously we used PHP extensively), and it went well.

The entire process from getting a prototype up, doing database stuff (mostly
thanks to Hibernate), custom components, etc. went rather smoothly.

The learning curve was slightly steep once we started doing interesting UI
interactions (and also that really annoying LazyLoad exception during tests
that I still can't figure out), but it's worth the effort.

I love spaghetti, but not in my code.

Thanks guys :)

On Fri, Feb 19, 2010 at 9:42 AM, Fabio Fioretti  wrote:

> Peter, I completely agree with you. :-) Thanks Wicket!
>
> Fabio
>
> On Fri, Feb 19, 2010 at 9:37 AM, Peter Ertl  wrote:
> > Wicket put the "suck" out of web development for me :-)
> >
> > Am 19.02.2010 um 08:14 schrieb Josh Kamau:
> >
> >> Me too!!
> >>
> >> On Fri, Feb 19, 2010 at 9:57 AM, Ashika Umanga Umagiliya <
> >> auma...@biggjapan.com> wrote:
> >>
> >>> I love Wicket !
> >>>
> >>> -
> >>> 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: [OT] Wicket changed my life !

2010-02-19 Thread Fabio Fioretti
Peter, I completely agree with you. :-) Thanks Wicket!

Fabio

On Fri, Feb 19, 2010 at 9:37 AM, Peter Ertl  wrote:
> Wicket put the "suck" out of web development for me :-)
>
> Am 19.02.2010 um 08:14 schrieb Josh Kamau:
>
>> Me too!!
>>
>> On Fri, Feb 19, 2010 at 9:57 AM, Ashika Umanga Umagiliya <
>> auma...@biggjapan.com> wrote:
>>
>>> I love Wicket !
>>>
>>> -
>>> 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: Ajax and OpenSessionInViewFilter problems

2010-02-19 Thread Martin Sachs
Hi ,

if you use LDM for a form Model.getObject will load the Objects from DB
in each request. This is not a Problem, if all data are in the Form
allready.

Ajax-submit sends the Form incl. all field as parameters, if valid set
it to this object and then you have to Store it in this request.  If you
want to collect datas in a transient (not persistent) way you could use
the Session, or Serializable objects.  The state of data is always in
the form or component.

I use Hibernate with serializable objects AND Lazy-loading. This is not
always a nice solution. To work with this Objects, i reattach the
hibernatesession on each method call via AspectJ. This allows to use
DB-Mapped serialized POJOs with Lazy loading in e.g. PropertyModels.

I would not recommend to use DTOs, but in some cases this is a cheap
solution.

regards
Martin



Kogel, Jonck-van-der schrieb:
> Hi All,
> Follow-up to my own post.
>
> I found the following here:
> http://old.nabble.com/Wicket---No-Serializable-objects-Web-application-t
> d19351608.html
>
> Quote: "However , there is a problem if you use loadabledetachable with
> AJAX requests
> on your page. Model.detach() is called on every request, which causes
> your
> object to be retrieved from database on the next Model.getObject() call.
> This
> means you lose all changes on your bound domain obect on every ajax
> request.
> I found to solutions to this, and i like neither of them:
>
> a) use DTOs, which means a lot of code duplication.
>
> b) write the current object state  to the database on every detach,
> which
> means you might store objects in an incomplete state, before the user
> explicitly tells the application to store what she or hehas entered.
>
> If anybody has a nicer solution to this, i'd love to hear about it. "
>
> Option b) is definitely a no-go, so it seems I'll have to use DTO's
> then. If someone knows of a nicer solution I would also love to hear
> about it. For now I guess I'll go the DTO road.
>
> Thanks, Jonck 
>
> -Original Message-
> From: Kogel, Jonck-van-der [mailto:jonck-van-der.ko...@bmw.nl] 
> Sent: donderdag 18 februari 2010 14:30
> To: users@wicket.apache.org
> Subject: Ajax and OpenSessionInViewFilter problems
>
> Hi All,
> As the subject reads, I'm having some problems with Ajax and the
> OpenSessionInViewFilter. Here's my basic setup:
>  
> I've got a page with some address info, such as street/city/zipcode.
> Let's call the current value of these fields V1. There is also an ajax
> link to open a modal panel that allows the user to look up street/city
> info based on the zipcode. When the modal panel opens the info V1 is
> passed on to the modal panel as initial value. Let's say here the user
> enters new info and a street/city is found, we'll call this info V2. The
> user then presses the submit button on the modal panel and indeed V2 is
> now shown on the main page. However, when I now click the ajax link to
> open the modal panel again, the user get's shown V1 in the modal panel
> as initial filling. When finally submitting the page V2 is persisted, so
> the information is being retained somewhere.
>  
> I have debugged the application and I see the setters of my domain
> object being called. Also when debugging however I see that the load()
> method of the LoadableDetachableModel is being called when I hit the
> ajax link, so it seems like a new version of the object is being
> retrieved from the database. I thought that's what the
> OpenSessionInViewFilter was for, to allow for multiple requests in your
> view without Hibernate closing/opening the session each time and
> retrieving fresh copies of your objects. Here is some relevant code:
>  
> OpenSessionInView setup in web.xml:
>  
> 
>  opensessioninview
>  
>   org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
>  
>  
>   singleSession
>   true
>  
> 
>  
> Submit link on my modal panel:
>  
> searchResultsHolder.add(new AjaxSubmitLink("selectMatch") {  @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
>   Address address = addressModel.getObject();
>   address.setZipcode(foundZipcode.getZipcode());
>   address.setHouseNr(foundZipcode.getHouseNr());
>   address.setStreet(foundZipcode.getStreet().getStreetName());
>   address.setCity(foundZipcode.getCity().getCityName());
>   address.setCountry(Country.NL);
>   address.setAddressValidated(true);
>   
>   for (Component component : updateList) {
>target.addComponent(component);
>   }
>   modalWindow.close(target);
>  }
> });
>  
> The LoadableDetachableModel used (and is being called when I hit the
> ajax link):
>  
> final IModel mergedModel = new LoadableDetachableModel() {
> @Override  protected ARF load() {
>   return arfService.load(arfId);
>  }
> };
>  
> Many thanks for any help!
>  
> Kind regards, Jonck
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: u

Re: [OT] Wicket changed my life !

2010-02-19 Thread Peter Ertl
Wicket put the "suck" out of web development for me :-)

Am 19.02.2010 um 08:14 schrieb Josh Kamau:

> Me too!!
> 
> On Fri, Feb 19, 2010 at 9:57 AM, Ashika Umanga Umagiliya <
> auma...@biggjapan.com> wrote:
> 
>> I love Wicket !
>> 
>> -
>> 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



PageExpiredException on ajax calls if apps pages are opened in different tabs

2010-02-19 Thread sachin kumar anumula
Hi,

   1. Firstly, I did take a look at all posts regarding this exception
   available on PEE like
hereand
   
here
   2. Secondly, Its not a Serialization issue as most conclude and that the
   exception occurs every time there is an ajax call happens with pages from
   apps are opened in 2 tabs
   3. I do not implement any other algorithms and use the packaged
   SessionStore
   4. Session is not invalidated and PageMaps are not quenched and the
   default PageMap = null is in place and pages are serialized and deserialized
   to diskstore
   5. The URL looks like this at exception occurence
   http://localhost:8080/myApp/secure/jas/tom/?wicket:interface=:3
   6. Exception trace is as such
   org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
   rendered page in session
   
[pagemap=null,componentPath=2:xyzPanel:xyzForm:filter:viewButton,versionNumber=0]

 at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:191)

 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)
 at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)

 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)
 at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
 at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)

 at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(Unknown Source)
 at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)

 at 
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
 at 
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

 at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Where am i going wrong?

Thanks,
Sachin


Re: Large number components and redering time

2010-02-19 Thread Juha Palomäki
If you want to avoid mixing HTML and Java, you could write your
component with using a templating engine, such as Velocity or
Freemarker.

I believe there is wicket-velocity project somewhere that provides for
example Panels that can render Velocity templates files.

br, Juha

On Thu, Feb 18, 2010 at 9:22 AM,   wrote:
> Hi,
>
> Igor Vaynberg wrote:
>>
>> i would imagine you would have the same problem even in a local
>> environment such as swing...
>
> absolutely, I was just wondering what would be the best way to do it in
> Wicket...
>
>> the solution is quiet simple, instead of using wicket components to
>> model the table and the cell simply use a single component that writes
>> out html for the entire table.
>
> That's the solution a friend of mine suggested as well since he had similar
> problems in ZK. I was reluctant since writing out HTML felt somewhat
> un-wicket-ish. But I think that's the way to go for this kind of
> situation...
>
> Thanks everybody for your suggestions and comments.
>
> J.
>
>
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>
> -
> 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



Security report suggests to use Apache Wicket

2010-02-19 Thread Martijn Dashorst
"Cross-site scripting is the practice of embedding malicious script
into a Web page that can execute when users visit the page. To ward
off such attacks, the report recommends using frameworks and libraries
to control output, including "Microsoft's Anti-XSS library, the OWASP
ESAPI Encoding module, and Apache Wicket." Programmers should use
strong character encoding and set the browser cookie session to
HttpOnly."

Taken from: 
http://mcpmag.com/articles/2010/02/18/report-profiles-top-software-security-coding-errors.aspx

Mention of Wicket in the original report (http://cwe.mitre.org/top25/):

Prevention and Mitigations

Architecture and Design

Use languages, libraries, or frameworks that make it easier to
generate properly encoded output.
Examples include Microsoft's Anti-XSS library, the OWASP ESAPI
Encoding module, and Apache Wicket.

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