User permissions

2009-01-14 Thread itayh

Hi,

I would like to create different users that will have different permissions.
For example if I have a page with several buttons, some users will just see
that page while others will be able to push the buttons.
I read the Wicket-Security at Wicket Stuff site:
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
Its look that the security over there is on pages and not on components such
buttons.
Is it also for all components? Is there something more simple that do this? 
Until now we used the AutorizeInstantiation annotation so I wonder if it can
support also the different permissions. 
-- 
View this message in context: 
http://www.nabble.com/User-permissions-tp21452441p21452441.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



Accessing username from page problem

2009-01-12 Thread itayh

Hi,

I have my custom session class that extends AuthenticatedWebSession and I
implement the authenticate method. 
In order to get the user name from anywhere in the code I save the user name
in the authenticate method to local member and then I can use it anywhere.
The problem is if I restart my tomcat. In this case the authenticate method
is not called (since the cookie is valid in the browser) so my user name
field is empty.

Am I doing something wrong?

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Accessing-username-from-page-problem-tp21415129p21415129.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



Support multiple views for different user

2009-01-11 Thread itayh

Hi,

Currently in my server anyone that logged in can add and see all the data in
the system (that he added or other people added) 
I need the ability to create different users and each user can see only the
data that he enter.
Does wicket has a build in solution for this scenario?

Thanks in advance,
Itay

-- 
View this message in context: 
http://www.nabble.com/Support-multiple-views-for-different-user-tp21398940p21398940.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: Javascript call to wicket

2008-12-16 Thread itayh

Hi Erik,

I used your solution and it works great for ff, while ie seem to have
problems with it. Have you run it also in ie?

Thanks,
  Itay



Erik van Oosten wrote:
 
 I just finished an experiment with something like that. Its still ugly
 and very static, but here is my code.
 
 In the HTML header the function you can call from Flash:
 function(someValue) {
 var inputEl = document.getElementById('anchor8');
 inputEl.value = someValue;
 eval(inputEl.getAttribute('onclick'));
 }
 
 Somewhere in the page:
 form wicket:id=ajaxForm style=display: none;input
 wicket:id=myField type=hidden value=//form
 
 Note that 'anchor8', the Wicket generated id of the input element, still
 needs te be made dynamic. Not sure how yet.
 
 
 The code:
 Form form = new Form(ajaxForm);
 add(form);
 final HiddenField myField = new HiddenField(myField, new
 Model(), String.class);
 form.add(myField);
 myField.add(new AjaxFormSubmitBehavior(onclick) {
 @Override
 protected void onError(AjaxRequestTarget target) {
 throw new RuntimeException(foutje);  // not sure what
 to do here
 }
 
 @Override
 protected void onSubmit(AjaxRequestTarget target) {
 String myValue = (String) myField.getConvertedInput();
 processAjaxRequest(target, myValue);
 }
 });
 
 Improvements are very welcome.
 
 Regards,
 Erik.
 
 
 
 Sébastien Piller wrote:
 Hello guys,

 I've a little question about the javascript and wicket. I need to
 update some models on server side using javascript (in fact, I need to
 update it from a flash object, and that's why I use js).

 But I have no idea about how to do this... I know how to call a JS
 function from flash, but I don't know how to update a wicket model
 using a javascript/ajax call.

 Has anybody some hint about that?

 Thanks you

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

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p21035640.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



Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh

Hi,

I have AjaxCheckBox. I want to be able to set other components to be disable
or enable when the use check or unckeck the AjaxCheckBox.
In my javacode:

Several text fields in the next format:
TextField externalXapUrlField = new TextField(externalXapUrl);
add(externalXapUrlField, new PropertyModel(this, externalXapUrl));

The check box:
CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new
PropertyModel(this, externalUpload)){
@Override
protected void onUpdate(AjaxRequestTarget arg0) 
{
//TODO - I am not sure what to do here
}
};  
add(externalUploadCheckBox);

I want to set the text box fields to be editable or disable according the
check box, Any Idea?

Thanks in advance

-- 
View this message in context: 
http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh

Thanks a lot Ernesto, It works

reiern70 wrote:
 
 Sorry, sent to early...
 Maybe something like?
 CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new
 PropertyModel(this, externalUpload)){
@Override
protected void onUpdate(AjaxRequestTarget
 arg0) {
 
  externalXapUrlField.setEnabled(true/false);
   if(arg0 != null) {
 
  arg0.addComponent(externalXapUrlField);
   }
}
 };
 
 For this to work externalXapUrlField will have be a variable (so that you
 can refer back to it) and
 have externalXapUrlField.setOutputMarkupId(true)...
 
 Ernesto
 
 
 On Tue, Dec 9, 2008 at 10:31 AM, itayh [EMAIL PROTECTED] wrote:


 Hi,

 I have AjaxCheckBox. I want to be able to set other components to be
 disable
 or enable when the use check or unckeck the AjaxCheckBox.
 In my javacode:

 Several text fields in the next format:
 TextField externalXapUrlField = new TextField(externalXapUrl);
 add(externalXapUrlField, new PropertyModel(this, externalXapUrl));

 The check box:
 CheckBox externalUploadCheckBox = new AjaxCheckBox(external,new
 PropertyModel(this, externalUpload)){
@Override
protected void onUpdate(AjaxRequestTarget
 arg0) {





}
 };
 add(externalUploadCheckBox);

 I want to set the text box fields to be editable or disable according
 the
 check box, Any Idea?

 Thanks in advance

 --
 View this message in context:
 http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 
 

-- 
View this message in context: 
http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20913865.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



button click and Form with CompoundPropertyModel lose its data

2008-12-01 Thread itayh

Hi,

I am creating a form in the next format:
private abstract class EditForm extends Form{

   public EditForm(String id, Poll poll) {
/*
 * We wrap the poll bean with a CompoundPropertyModel, this
allows
 * us to easily connect form components to the bean properties
 * (component id is used as the property expression)
 */

super(id, new CompoundPropertyModel(poll));
 
  }
}

My page has also some buttons in different forms that do all kind of things.
My problem begin when I create new Poll object (so the poll is empty) and
fill the fields of the poll, but before saving it I press on one of the
other buttons. It is rendering the page again so all the  data that I enter
is lost.

Same problem occur when I edit poll and before saving it I press on one of
the other buttons. It is rendering the page again so all the  data that I
change is lost.

Any idea will be appreciate.

Thanks,
  Itay
-- 
View this message in context: 
http://www.nabble.com/button-click-and-Form-with-CompoundPropertyModel-lose-its-data-tp20767616p20767616.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh

Hi,

I use Markup inheritance in my site in order to keep common logic in the
base page. 
I would like my child pages to do certain javascript actions when they are
loaded. I try to define the the javascript on the childs body (between the
wicket:extend and /wicket:extend) but I don't see them in the generated
page (the base + child page). Any Idea how to generate onLoad javascript
action for child page?
-- 
View this message in context: 
http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh

Thank you, it works great.


jWeekend wrote:
 
 You can use wicket:head or HeaderContributors.
 See  http://cwiki.apache.org/WICKET/javascript-and-css-support.html this .
 
 Regards - Cemal
  http://www.jWeekend.co.uk http://jWeekend.co.uk 
 
 
 itayh wrote:
 
 Hi,
 
 I use Markup inheritance in my site in order to keep common logic in the
 base page. 
 I would like my child pages to do certain javascript actions when they
 are loaded. I try to define the the javascript on the childs body
 (between the wicket:extend and /wicket:extend) but I don't see them
 in the generated page (the base + child page). Any Idea how to generate
 onLoad javascript action for child page?
 
  http://cwiki.apache.org/WICKET/javascript-and-css-support.html
 http://cwiki.apache.org/WICKET/javascript-and-css-support.html 
 

-- 
View this message in context: 
http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20682858.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: image link inside of table problem

2008-11-11 Thread itayh

Hi Charlie,
You are correct, I removed some not relevant data.
Here is my table full markup:

table class=table id=pollList
thead
tr
th wicket:id=orderByIdwicket:message
key=poll.id[id]/wicket:message/th
th wicket:id=orderByNamewicket:message
key=poll.name[name]/wicket:message/th
th wicket:id=orderByDescriptionwicket:message

key=poll.description[description]/wicket:message/th
th wicket:id=orderByQuestionwicket:message

key=poll.question[question]/wicket:message/th
th wicket:id=orderByMaxVoteswicket:message

key=poll.maxVotes[maxVotes]/wicket:message/th
th wicket:id=orderByActivewicket:message
key=poll.active[active]/wicket:message/th
th wicket:id=orderByDeletewicket:message
key=poll.delete[delete]/wicket:message/th
/tr
/thead
tbody
tr wicket:id=polls
td a href=# wicket:id=edit-link[id] /td
td span wicket:id=poll.name[name]/td
td span 
wicket:id=poll.description[description]/td
td span wicket:id=poll.question[question]/td
td span wicket:id=poll.maxVotes[maxVotes]/td
td a href=# wicket:id=active-link[active] /td
td a href=# wicket:id=delete-link img  src = 
images/delete_icon.png / /td   
/tr
/tbody
/table

here is the javacode parts that create the onclick actions for all the
links. It work ok for all links except the delete link that I try to use
image:
Link link = new Link(edit-link, 
item.getModel()) {
public void onClick() {
onEditPoll((Poll) 
getModelObject());
}
};
link.add(new Label(poll.id, 
String.valueOf(poll.getId(;
item.add(link);

item.add(new Label(poll.name, 
poll.getName()));
item.add(new Label(poll.description, 
poll.getDescription()));
item.add(new Label(poll.question, 
poll.getQuestion()));
item.add(new Label(poll.maxVotes,
String.valueOf(poll.getMaxVotes(;
//second link
Link activeLink = new Link(active-link, 
item.getModel()) {
public void onClick() {
onActivePoll((Poll) 
getModelObject());
}   
};
if 
(poll.getStatus().equals(VidgetStatus.ACTIVE))
activeLink.add(new Label(poll.active, 
deactivate));
else
activeLink.add(new Label(poll.active, 
activate));
item.add(activeLink);

Link deleteLink = new Link(delete-link, 
item.getModel()) {
public void onClick() {
onDeletePoll((Poll) 
getModelObject());
}   
};


if(poll.getStatus().equals(VidgetStatus.ACTIVE))
deleteLink.setEnabled(false);
item.add(deleteLink);

In the generated html page I dont see the delete link. All the other links
in the generated html  look like:
td a href=?wicket:interface=:2:polls:9:edit-link::ILinkListener::2
/td

while for the delete I have:
tdem img src=../images/delete_icon.png//em/td   

Igor, I did not understand your comment.

Thanks in advance,
  Itay


Charlie Dobbie wrote:
 
 That can't be your real markup - you've not closed the span or anchor
 tags,
 and Wicket won't accept that at all.
 
 Please post your real markup!
 
 Charlie.
 
 
 
 
 
 2008/11/11 Igor Vaynberg [EMAIL PROTECTED]
 
 what url is generated for that link (look in source). how is the url
 different from what it is supposed to be? you need to learn how to
 provide more *useful* information if you want help.

 -igor

 On Tue, Nov 11, 2008 at 8:09 AM, itayh [EMAIL PROTECTED] wrote

Re: image link inside of table problem

2008-11-11 Thread itayh

Thanks  Ned, that was the problem

Ned Collyer wrote:
 
 if you have em's wrapped around the link, its probably disabled.
 
 Eg, from
   if(poll.getStatus().equals(VidgetStatus.ACTIVE))
 deleteLink.setEnabled(false); 
 
 Rgds
 
 Ned
 
 
 
 itayh wrote:
 
 Hi Charlie,
 You are correct, I removed some not relevant data.
 Here is my table full markup:
 
 table class=table id=pollList
  thead
  tr
  th wicket:id=orderByIdwicket:message
 key=poll.id[id]/wicket:message/th
  th wicket:id=orderByNamewicket:message
 key=poll.name[name]/wicket:message/th
  th wicket:id=orderByDescriptionwicket:message
  
 key=poll.description[description]/wicket:message/th
  th wicket:id=orderByQuestionwicket:message
  
 key=poll.question[question]/wicket:message/th
  th wicket:id=orderByMaxVoteswicket:message
  
 key=poll.maxVotes[maxVotes]/wicket:message/th
  th wicket:id=orderByActivewicket:message
 key=poll.active[active]/wicket:message/th
  th wicket:id=orderByDeletewicket:message
 key=poll.delete[delete]/wicket:message/th
  /tr
  /thead
  tbody
  tr wicket:id=polls
  td a href=# wicket:id=edit-link[id] /td
  td span wicket:id=poll.name[name]/td
  td span 
 wicket:id=poll.description[description]/td
  td span wicket:id=poll.question[question]/td
  td span wicket:id=poll.maxVotes[maxVotes]/td
  td a href=# wicket:id=active-link[active] /td
  td a href=# wicket:id=delete-link img  src = 
 images/delete_icon.png / /td
  /tr
  /tbody
 /table
 
 here is the javacode parts that create the onclick actions for all the
 links. It work ok for all links except the delete link that I try to use
 image:
  Link link = new Link(edit-link, 
 item.getModel()) {
  public void onClick() {
  onEditPoll((Poll) 
 getModelObject());
  }
  };
  link.add(new Label(poll.id, 
 String.valueOf(poll.getId(;
  item.add(link);
  
  item.add(new Label(poll.name, 
 poll.getName()));
  item.add(new Label(poll.description, 
 poll.getDescription()));
  item.add(new Label(poll.question, 
 poll.getQuestion()));
  item.add(new Label(poll.maxVotes,
 String.valueOf(poll.getMaxVotes(;
  //second link
  Link activeLink = new Link(active-link, 
 item.getModel()) {
  public void onClick() {
  onActivePoll((Poll) 
 getModelObject());
  }   
  };
  if 
 (poll.getStatus().equals(VidgetStatus.ACTIVE))
  activeLink.add(new Label(poll.active, 
 deactivate));
  else
  activeLink.add(new Label(poll.active, 
 activate));
  item.add(activeLink);
  
  Link deleteLink = new Link(delete-link, 
 item.getModel()) {
  public void onClick() {
  onDeletePoll((Poll) 
 getModelObject());
  }   
  };
  
  
  if(poll.getStatus().equals(VidgetStatus.ACTIVE))
  deleteLink.setEnabled(false);
  item.add(deleteLink);
 
 In the generated html page I dont see the delete link. All the other
 links in the generated html  look like:
 td a href=?wicket:interface=:2:polls:9:edit-link::ILinkListener::2
 /td
 
 while for the delete I have:
 tdem img src=../images/delete_icon.png//em/td
 
 Igor, I did not understand your comment.
 
 Thanks in advance,
   Itay
 
 
 Charlie Dobbie wrote:
 
 That can't be your real markup - you've not closed the span or anchor
 tags,
 and Wicket won't accept that at all.
 
 Please post your real markup!
 
 Charlie.
 
 
 
 
 
 2008/11/11 Igor Vaynberg [EMAIL PROTECTED]
 
 what url is generated for that link (look

image link inside of table problem

2008-11-11 Thread itayh

Hi,

I am having a table with deactivate and delete link columns. In the delete
column I want to have delete image, so pressing on the image will activate
the delete function on the server.

My html code:
td a href=# wicket:id=active-link  span wicket:id=poll.active 
/td
td a href=# wicket:id=delete-link  img src=images/delete_icon.png
/ /td

My java code:
Link activeLink = new Link(active-link, item.getModel()) {
public void onClick() {
onActivePoll((Poll) getModelObject());
   }
};
activeLink.add(new Label(poll.active, activate));
item.add(activeLink);

Link deleteLink = new Link(delete-link, item.getModel()) {
public void onClick() {
onDeletePoll((Poll) getModelObject());
}   
};
item.add(deleteLink);

While the activate link work ok, the delete link which use the image is not
appearing in the html and I see just the image with no link.
Any idea what I am doing wrong?

Thanks in advance,
  Itay
 
-- 
View this message in context: 
http://www.nabble.com/image-link-inside-of-table-problem-tp20442713p20442713.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-11-10 Thread itayh

Thank you all for all the help. Changing the type of the button to button
instead of submit fix that problem.

itayh wrote:
 
 The first line is actually name = item.getName(); there was a copy typo
 when I paste here the code. Any Idea?
 
 Pablo Abad wrote:
 
 Seems a typo either in the code you pasted or in your actual code, but
 shouldn't the first line be something like name = item.getName(); ?
 (gameItem -- item)
 On Tue, Oct 28, 2008 at 11:41 AM, itayh [EMAIL PROTECTED]
 wrote:
 
 protected void onEditItem(Item item) {
name = gameitem.getName();
addItemsForm.setVisible(true);
 }
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-PropertyModel-and-setDefaultFormProcessing%28false%29-for-button-tp20209348p20419618.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-11-09 Thread itayh

Hi Timo,

Changing it to link solve the problem, but created a new one. It changes the
look and feel of my page (since I am using buttons for save and cancel in my
site).

Thank in advance,
  Itay


Timo Rantalaiho wrote:
 
 On Tue, 28 Oct 2008, itayh wrote:
 I have a page that contain a hidden form. When the user press on Add
 Item
 or Edit Item then I set the visability of the form to true and the user
 can add details and the OK button save the data and set the visability of
 the form to false.
 The problem is if the user press on cancel. I need to set
 setDefaultFormProcessing(false) for the cancel button (since I don't want
 to
 do validation checks) but It cause the next problem:
 After the cancel press next time I press the Add Item or Edit Item
 the
 data that I see is the old data (The one I press cancel on)
 Changing setDefaultFormProcessing(true) for the cancel fix that problem.
 
 Maybe you could change the cancel button
 
 addItemForm.add(new Button(cancel, new Model(Cancel)) {
 public void onSubmit() {
  onCanceItem();
 }
 }.setDefaultFormProcessing(false));
 
 to be a Link in Wicket? That way it would definitely not
 submit any form data to the server, so nothing should be
 stored in between requests.
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-PropertyModel-and-setDefaultFormProcessing%28false%29-for-button-tp20209348p20404643.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to plant dynamic data to the html

2008-11-03 Thread itayh

Hi all,

I have a peace of html that looks like that:

div id=silverlightControlHost
  
  
  !--param name=onerror value=onSilverlightError /--
  
  

  img src=http://reshet.attractv.net/reshet/img/no_silverlight.jpg;
usemap=#no_silverlight border=0 /

  map name=no_silverlight
  !--area shape=rect coords=626,431,385,295
href=http://go.microsoft.com/fwlink/?LinkID=115261; /--
  area shape=rect coords=626,431,385,295
href=http://go.microsoft.com/fwlink/?LinkID=124807; /
area shape=rect coords=593,492,406,526 
href=javascript:
loadBack() /
  /map
  
  iframe style='visibility:hidden;height:0;width:0;border:0px'/iframe
/div

I need to set the value of the initParams parameter in dynamic way from my
java code. To be more accurate what I need is to set the next url
m=http://SWITCH434-01.castup.net/cunet/gm.asp?ai=434ar=08-09-18_22-00-30ak=null;
 
from the java code according to the url  I get from the user.
Any simple way to do this in wicket?

Thanks in advance,
  Itay
-- 
View this message in context: 
http://www.nabble.com/How-to-plant-dynamic-data-to-the-html-tp20306256p20306256.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to plant dynamic data to the html

2008-11-03 Thread itayh

Sorry, My mistake.
Here is the html code:
 param name = initParams
value=autostart=false,res=1.333,medW=640,medH=480,m=http://SWITCH434-01.castup.net/cunet/gm.asp?ai=434ar=08-09-18_22-00-30ak=null;
/

I need to set the value of the initParams parameter in dynamic way from my
java code. To be more accurate what I need is to set the next url
m=http://SWITCH434-01.castup.net/cunet/gm.asp?ai=434ar=08-09-18_22-00-30ak=null;
 
from the java code according to the url  I get from the user.
Any simple way to do this in wicket? 

Thanks in advance,
  Itay

itayh wrote:
 
 Hi all,
 
 I have a peace of html that looks like that:
 
 div id=silverlightControlHost
   
   
   !--param name=onerror value=onSilverlightError /--
   
   
 
   img src=http://reshet.attractv.net/reshet/img/no_silverlight.jpg;
 usemap=#no_silverlight border=0 /
 
   map name=no_silverlight
   !--area shape=rect coords=626,431,385,295
 href=http://go.microsoft.com/fwlink/?LinkID=115261; /--
   area shape=rect coords=626,431,385,295
 href=http://go.microsoft.com/fwlink/?LinkID=124807; /
   area shape=rect coords=593,492,406,526 
 href=javascript:
 loadBack() /
   /map
   
   iframe style='visibility:hidden;height:0;width:0;border:0px'/iframe
 /div
 
 I need to set the value of the initParams parameter in dynamic way from my
 java code. To be more accurate what I need is to set the next url
 m=http://SWITCH434-01.castup.net/cunet/gm.asp?ai=434ar=08-09-18_22-00-30ak=null;
  
 from the java code according to the url  I get from the user.
 Any simple way to do this in wicket?
 
 Thanks in advance,
   Itay
 

-- 
View this message in context: 
http://www.nabble.com/How-to-plant-dynamic-data-to-the-html-tp20306256p20306368.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to plant dynamic data to the html

2008-11-03 Thread itayh

10x alot, it works


Jeremy Thomerson-5 wrote:
 
 Try this:
 http://www.nabble.com/Adding-Adobe-Media-Player-in-wicket-to19797690.html#a19827296
 
 
 -- 
 Jeremy Thomerson
 http://www.wickettraining.com
 
 On Mon, Nov 3, 2008 at 10:52 AM, itayh [EMAIL PROTECTED] wrote:
 

 Hi all,

 I have a peace of html that looks like that:

 div id=silverlightControlHost


  !--param name=onerror value=onSilverlightError /--



  img src=http://reshet.attractv.net/reshet/img/no_silverlight.jpg;
 usemap=#no_silverlight border=0 /

  map name=no_silverlight
  !--area shape=rect coords=626,431,385,295
 href=http://go.microsoft.com/fwlink/?LinkID=115261; /--
  area shape=rect coords=626,431,385,295
 href=http://go.microsoft.com/fwlink/?LinkID=124807; /
area shape=rect
 coords=593,492,406,526
 href=javascript:
 loadBack() /
  /map

  iframe style='visibility:hidden;height:0;width:0;border:0px'/iframe
 /div

 I need to set the value of the initParams parameter in dynamic way from
 my
 java code. To be more accurate what I need is to set the next url
 m=
 http://SWITCH434-01.castup.net/cunet/gm.asp?ai=434ar=08-09-18_22-00-30ak=nullhttp://switch434-01.castup.net/cunet/gm.asp?ai=434ar=08-09-18_22-00-30ak=null
 
 from the java code according to the url  I get from the user.
 Any simple way to do this in wicket?

 Thanks in advance,
  Itay
 --
 View this message in context:
 http://www.nabble.com/How-to-plant-dynamic-data-to-the-html-tp20306256p20306256.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-plant-dynamic-data-to-the-html-tp20306256p20306752.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Refresh parent page from an iframe

2008-11-02 Thread itayh

Hi,

I have a page that contains several iframes with some actions in each
iframe. When I press on some of the actions I want the parent page to be
updated (since the actions affect the whole parent page with the iframes).
But every attempt to update the page is actually updating the iframe only.
What actually happen is that the whole page get render again inside the
iframe. I use setResponsePage(parent) within the iframe. Thats probably the
problem but I don't know what else to use.  
I try to do as it written
here:http://www.nabble.com/modal-window-navigation--td18551902.html but it
does not work.

Any idea's?

Thanks in advance,
  Itay

-- 
View this message in context: 
http://www.nabble.com/Refresh-parent-page-from-an-iframe-tp20290367p20290367.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-10-28 Thread itayh

Hey,

I have a page that contain a hidden form. When the user press on Add Item
or Edit Item then I set the visability of the form to true and the user
can add details and the OK button save the data and set the visability of
the form to false.
The problem is if the user press on cancel. I need to set
setDefaultFormProcessing(false) for the cancel button (since I don't want to
do validation checks) but It cause the next problem:
After the cancel press next time I press the Add Item or Edit Item the
data that I see is the old data (The one I press cancel on)
Changing setDefaultFormProcessing(true) for the cancel fix that problem.

Here is the code:

private String name;
TextField nameField = new TextField(name, new PropertyModel(this,
name));
addGameItemForm.add(nameField);

...

Link link = new Link(edit-link, item.getModel()) {
public void onClick() {
onEditItem((Item) getModelObject());
}
};

...

Button save = new Button(save, new Model(Save)) {
public void onSubmit() {
onSaveItem();
}
;   
addItemForm.add(save);

addItemForm.add(new Button(cancel, new Model(Cancel)) {
public void onSubmit() {
onCanceItem();
}
}.setDefaultFormProcessing(false));

private void onCancelGameItem() {
addItemsForm.setVisible(false);
}

protected void onEditItem(Item item) {
name = gameitem.getName();
addItemsForm.setVisible(true);
}

In case that the setDefaultFormProcessing is false for the cancel button,
the name is not the one I press edit on. It is the old one.

Any Idea?





-- 
View this message in context: 
http://www.nabble.com/problem-with-PropertyModel-and-setDefaultFormProcessing%28false%29-for-button-tp20209348p20209348.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with PropertyModel and setDefaultFormProcessing(false) for button

2008-10-28 Thread itayh

Did it. It has no affect. I clear the name in the cancel and I also set it to
the new value in edit item action. But still after cancel when i try to edit
new item I get the old value. 

jwcarman wrote:
 
 Set the name property to  in your cancel handler logic?
 
 On Tue, Oct 28, 2008 at 11:41 AM, itayh [EMAIL PROTECTED] wrote:

 Hey,

 I have a page that contain a hidden form. When the user press on Add
 Item
 or Edit Item then I set the visability of the form to true and the user
 can add details and the OK button save the data and set the visability of
 the form to false.
 The problem is if the user press on cancel. I need to set
 setDefaultFormProcessing(false) for the cancel button (since I don't want
 to
 do validation checks) but It cause the next problem:
 After the cancel press next time I press the Add Item or Edit Item
 the
 data that I see is the old data (The one I press cancel on)
 Changing setDefaultFormProcessing(true) for the cancel fix that problem.

 Here is the code:

 private String name;
 TextField nameField = new TextField(name, new PropertyModel(this,
 name));
 addGameItemForm.add(nameField);

 ...

 Link link = new Link(edit-link, item.getModel()) {
public void onClick() {
onEditItem((Item) getModelObject());
}
 };

 ...

 Button save = new Button(save, new Model(Save)) {
public void onSubmit() {
onSaveItem();
}
 ;
 addItemForm.add(save);

 addItemForm.add(new Button(cancel, new Model(Cancel)) {
public void onSubmit() {
onCanceItem();
}
 }.setDefaultFormProcessing(false));

 private void onCancelGameItem() {
addItemsForm.setVisible(false);
 }

 protected void onEditItem(Item item) {
name = gameitem.getName();
addItemsForm.setVisible(true);
 }

 In case that the setDefaultFormProcessing is false for the cancel button,
 the name is not the one I press edit on. It is the old one.

 Any Idea?





 --
 View this message in context:
 http://www.nabble.com/problem-with-PropertyModel-and-setDefaultFormProcessing%28false%29-for-button-tp20209348p20209348.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-PropertyModel-and-setDefaultFormProcessing%28false%29-for-button-tp20209348p20210308.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-19 Thread itayh

Hi Erik,

I manage to see that problem. The reason that I am not even getting to
MyFrame constructor is because the parameter inside the page parameters
contain / (the parameter is url). If I remove the / or replace it with
another character than it works. I did a workaround and replace the url /
chars with different ones but it is quite ugly. You have any Idea why it is
like that?


Erik van Oosten wrote:
 
 Please check your setup then. I understand you are using sitemesh. Maybe 
 this interferes.
 
 Erik.
 
 itayh wrote:
 In this case the url will contain the parameters. But since I mount it
 without the parameters what I get is empty page. I am not sure why I am
 getting the empty page when I concat the parameters to the iframe url. I
 am
 not even getting to MyFrame constructor. Any Idea?

   
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p20056986.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-17 Thread itayh

In this case the url will contain the parameters. But since I mount it
without the parameters what I get is empty page. I am not sure why I am
getting the empty page when I concat the parameters to the iframe url. I am
not even getting to MyFrame constructor. Any Idea?


Erik van Oosten wrote:
 
 I don't understand. Reading the javadoc InlineFrame should set the src 
 attribute. If that is not the case, try setting the src attribute with 
 something like:
 
 myFrame.add(new AttributeModifier(src, new Model(urlFor(MyFrame.class,
 pageParameters;
 
 
 Regards,
 Erik.
 
 
 
 itayh wrote:
 Hi Erik,

 You are right, the src AttributeModifier overwrites params values. If I
 am
 not using the src AttributeModifier then the params has values and if I
 use
 it then the params are empty.

 But it seem that I must use the src AttributeModifier since I am using
 sitemesh decorators to decorate my pages according to the url, so I need
 to
 identify the iframes url from their container url. I need to decorate all
 my
 pages but I don't want to decorate the iframes (no need for headers and
 footers there).

 The src AttributeModifier is the only way I found how set the iframes url
 to
 what i want. Is there another way?

 Thanks alot,
   Itay


   
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p20027785.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-16 Thread itayh

Hi Erik,

You are right, the src AttributeModifier overwrites params values. If I am
not using the src AttributeModifier then the params has values and if I use
it then the params are empty.

But it seem that I must use the src AttributeModifier since I am using
sitemesh decorators to decorate my pages according to the url, so I need to
identify the iframes url from their container url. I need to decorate all my
pages but I don't want to decorate the iframes (no need for headers and
footers there).

The src AttributeModifier is the only way I found how set the iframes url to
what i want. Is there another way?

Thanks alot,
  Itay


Erik van Oosten wrote:
 
 That combination is wrong. If you use the IndexedHybridUrlCodingStrategy 
 the first parameter is called 0. Secondly the AttributeModifier 
 probably overwrites the generated src attribute.
 
 This should work (not tested):
 
 PageParameters params = new PageParameters();
 params.put(0, myUrl);// changed to put, just to be sure
 InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
 MyFrame.class, params);
 add(myFrame);
 
 public MyFrame(PageParameters params){
 String url = params.getString(0);  // changed to getString
 doSomething(url);
 }
 
 mount(new IndexedHybridUrlCodingStrategy(iframe/MyFrame,
 MyFrame.class));  // removed leading /
 
 
 Good luck!
 Erik.
  
 
 itayh wrote:
 Creating the InlineFrame component:
 PageParameters params = new PageParameters();
 params.add(url, myUrl);
 InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
 MyFrame.class, params);
 myFrame.add(new AttributeModifier(src, new
 Model(/myapp/app/iframe/MyFrame)));
 add(myFrame);

 Creating MyFrame:
 public MyFrame(PageParameters params ){
 String url = params.get(url); //the problem is that this params are
 empty
 doSomething(url);
 }

 Url mounting:
 mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame,
 MyFrame.class));

 I tried also for the url mounting:
 mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

 In all cases the params inside the constructor of MyFrame class has no
 values in them (size = 0)

 Thanks,
   Itay

   
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p20008835.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



page expire url

2008-10-16 Thread itayh

Hi all,

Is there any way I can control the page expire url? I am using ajax self
updating and when the page expire for some reason it turns into
host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage

I need it to be url that i can control depends on the pages I came from.

Thanks in advance,
  Itay
-- 
View this message in context: 
http://www.nabble.com/page-expire-url-tp20012692p20012692.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh

Creating the InlineFrame component:
PageParameters params = new PageParameters();
params.add(url, myUrl);
InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
MyFrame.class, params);
myFrame.add(new AttributeModifier(src, new
Model(/myapp/app/iframe/MyFrame)));
add(myFrame);

Creating MyFrame:
public MyFrame(PageParameters params ){
String url = params.get(url); //the problem is that this params are
empty
doSomething(url);
}

Url mounting:
mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

I tried also for the url mounting:
mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

In all cases the params inside the constructor of MyFrame class has no
values in them (size = 0)

Thanks,
  Itay


Erik van Oosten wrote:
 
 Itayh,
 
 What you do seems alright. Please show us complete code fragments. Both 
 the part where you create the InlineFrame component, and the constructor 
 of the MyFrame class.
 
 Regards,
 Erik.
 
 itayh schreef:
 Any Idea?


 itayh wrote:
   
 Thx for the quick response.

 I cahnged the url mount in my application to 
 mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame,
 MyFrame.class)) ...

 My problem is that still when i try to create iframe like:
 PageParameters params = new PageParameters();
 params.add(url, url) or params.add(0, url)
 InlineFrame myFrame = new InlineFrame(MyFrame,
 this.getPageMap(),MyFrame.class, params);
 myFrame .add(new AttributeModifier(src,
 newModel((Serializable)/myapp/iframe/MyFrame)));

 The params get empty to the MyFrame constructor.The only situation the
 params are not empty is when I do: 
 myFrame .add(new AttributeModifier(src,
 newModel((Serializable)/myapp/iframe/MyFrame/param_value)));

 But then the url is not found since I define in my app:
 mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame,
 MyFrame.class)) ...

 The param is runtime value and I can not know it when creating my app.

 
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p19995785.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-15 Thread itayh

Any Idea?


itayh wrote:
 
 Thx for the quick response.
 
 I cahnged the url mount in my application to 
 mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame,
 MyFrame.class)) ...
 
 My problem is that still when i try to create iframe like:
 PageParameters params = new PageParameters();
 params.add(url, url) or params.add(0, url)
 InlineFrame myFrame = new InlineFrame(MyFrame,
 this.getPageMap(),MyFrame.class, params);
 myFrame .add(new AttributeModifier(src,
 newModel((Serializable)/myapp/iframe/MyFrame)));
 
 The params get empty to the MyFrame constructor.The only situation the
 params are not empty is when I do: 
 myFrame .add(new AttributeModifier(src,
 newModel((Serializable)/myapp/iframe/MyFrame/param_value)));
 
 But then the url is not found since I define in my app:
 mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame,
 MyFrame.class)) ...
 
 The param is runtime value and I can not know it when creating my app.
 
 
 Erik van Oosten wrote:
 
 You should use one of the other HybridUrlCoding strategies. E.g. the 
 IndexedHybridUrlCodingStrategy.
 
 If you need an MixedParamHybridUrlCodingStrategy, I can mail it to the
 list.
 
 Regards,
 Erik.
 
 itayh wrote:
 Hi,

 I am using HybridUrlCodingStrategy for my url's (I need that the mount
 point
 will preserved even after invoking listener interfaces).

 I am creating IFrames using InlineFrame class. 
 In order that the url of the IFrame will be what I want I do:
 PageParameters params = new PageParameters();
 params.add(url, url);
 InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
 MyFrame.class, params);
 myFrame .add(new AttributeModifier(src, new
 Model((Serializable)/myapp/iframe/MyFrame)));

 In my Application I have:
 mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

 The thing is that in MyFrame class the PageParameters are empty.
 I am not  sure how to use
 HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY and where, or
 maybe I
 don't need to set src directly and there is another way to do it?

 Anyone?

 Thanks
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p19993282.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Clustering with tomcat - design consideration

2008-09-28 Thread itayh

Hi,

We plan to run our servers on a cluster environment. We are using Tomcat.
I looked and tried to see how is the best way to configure cluster wicket
but all I could find was to use the default.

Is there any paper that say what are the benefits/problems of any option?

Also in case I use the default cluster, will it mean that request does not
complete until any session attribute changes have synchronized to all
servers.

Thx
-- 
View this message in context: 
http://www.nabble.com/Clustering-with-tomcat---design-consideration-tp19709518p19709518.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-26 Thread itayh

Thx for the quick response.

I cahnged the url mount in my application to 
mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class))
...

My problem is that still when i try to create iframe like:
PageParameters params = new PageParameters();
params.add(url, url) or params.add(0, url)
InlineFrame myFrame = new InlineFrame(MyFrame,
this.getPageMap(),MyFrame.class, params);
myFrame .add(new AttributeModifier(src,
newModel((Serializable)/myapp/iframe/MyFrame)));

The params get empty to the MyFrame constructor.The only situation the
params are not empty is when I do: 
myFrame .add(new AttributeModifier(src,
newModel((Serializable)/myapp/iframe/MyFrame/param_value)));

But then the url is not found since I define in my app:
mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class))
...

The param is runtime value and I can not know it when creating my app.


Erik van Oosten wrote:
 
 You should use one of the other HybridUrlCoding strategies. E.g. the 
 IndexedHybridUrlCodingStrategy.
 
 If you need an MixedParamHybridUrlCodingStrategy, I can mail it to the
 list.
 
 Regards,
 Erik.
 
 itayh wrote:
 Hi,

 I am using HybridUrlCodingStrategy for my url's (I need that the mount
 point
 will preserved even after invoking listener interfaces).

 I am creating IFrames using InlineFrame class. 
 In order that the url of the IFrame will be what I want I do:
 PageParameters params = new PageParameters();
 params.add(url, url);
 InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
 MyFrame.class, params);
 myFrame .add(new AttributeModifier(src, new
 Model((Serializable)/myapp/iframe/MyFrame)));

 In my Application I have:
 mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

 The thing is that in MyFrame class the PageParameters are empty.
 I am not  sure how to use
 HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY and where, or maybe
 I
 don't need to set src directly and there is another way to do it?

 Anyone?

 Thanks
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p19691946.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-25 Thread itayh

Hi,

I am using HybridUrlCodingStrategy for my url's (I need that the mount point
will preserved even after invoking listener interfaces).

I am creating IFrames using InlineFrame class. 
In order that the url of the IFrame will be what I want I do:
PageParameters params = new PageParameters();
params.add(url, url);
InlineFrame myFrame = new InlineFrame(MyFrame, this.getPageMap(),
MyFrame.class, params);
myFrame .add(new AttributeModifier(src, new
Model((Serializable)/myapp/iframe/MyFrame)));

In my Application I have:
mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class));

The thing is that in MyFrame class the PageParameters are empty.
I am not  sure how to use
HybridUrlCodingStrategy.PAGE_PARAMETERS_META_DATA_KEY and where, or maybe I
don't need to set src directly and there is another way to do it?

Anyone?

Thanks



-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p19666330.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with sitemesh decorator in wicket iframe

2008-09-23 Thread itayh

Dear All,

I am using sitemesh decoration framework in my wicket application.
Everything work perfectly until I tried to create iframes.
I am using InlineFrame class for creating the iframes.
Java Code:
InlineFrame myFrame = new InlineFrame(MyFrame, new MyFrame(this)); 
Where MyFrame is simple webPage that use AjaxSelfUpdatingTimerBehavior for
refreshing.
HTML Code:
iframe wicket:id=MyFrame width=490 height=500
name=myFrame/iframe

I am using sitemesh decoration for all my pages(adding header, footer,
style, color...)
I don't want the iframes to contain the header and footer so i did the next
thing:
In the jsp that decorates the page (point from decorators.xml) I check the
request to see if it comes from iframe, if so I don't create header and
footer.

The problem is that it seem that the decoration jsp is not called when the
iframes are created and refreshed (they are refreshed using
AjaxSelfUpdatingTimerBehavior  every 10 seconds). I can see that every 10
second I reach to my filter function that called to chain.doFilter(req,
res); The chain contain the sitemesh filter but the jsp never get execute.

Any Idea?

Thanks in advance




-- 
View this message in context: 
http://www.nabble.com/Problem-with-sitemesh-decorator-in-wicket-iframe-tp19630659p19630659.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]