Re: Wicket

2011-06-03 Thread Ivoneta
Thanks it works

:)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-tp3568681p3571679.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket

2011-06-02 Thread Ivoneta
hello everyone

I need some help..

I have an application based on struts... This application has some links,
and I need this links calls a Wicket Pageit is possible?
I think that is possible calls ising the url page , but the problem is the
wicket generates the urls dinamically... 

How can I do this?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-tp3568681p3568681.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket

2011-06-02 Thread Ivoneta
hello everyone

I need some help..

I have an application based on struts... This application has some links,
and I need this links calls a Wicket Pageit is possible?
I think that is possible calls ising the url page , but the problem is the
wicket generates the urls dinamically... 

How can I do this?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-tp3568682p3568682.html
Sent from the Users forum 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: Wicket

2011-06-02 Thread Ivoneta
but I don't know how get the URL for the page?
Wicket generates de URL dinamically right?
How can generates an static URL?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-tp3568681p3569148.html
Sent from the Users forum 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



AjaxPagingNavigation change style

2010-07-21 Thread Ivoneta

Hello everyone.

I need to change the wicket navigator style. I read in previous posts the
solution to this so  I created my own subclass AjaxPagingNavigatorModified:

public class AjaxPagingNavigatorModified extends AjaxPagingNavigator{

public AjaxPagingNavigatorModified(String id, DataView? dataView){
super(id,dataView);
}
}

And then I created my own markup AjaxPagingNavigatorModified.html

html xmlns:wicket
body

  wicket:panel
 wicket:message key=First/ nbsp; wicket:message key=Previous / 

   # 5 

 wicket:message key=next/ nbsp; wicket:message key=LastPage/  
  /wicket:panel
/body
/html

I placed both of them in the same directory, but it doesn't work. The wicket
navigator has the default style. 

What I missing? What's wrong?

Can anyone help me?
Pleasee
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p2297188.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: AjaxPagingNavigation change style

2010-07-21 Thread Ivoneta

ohh I see the problem. I used a markup for AjaxPagingNavigator, but it
doesn't have one. The markup is for PagingNavigator.
I need to use AjaxPagingNavigator, so I implemented my own class
MyAjaxPagingNavigator - copying exactly the same AjaxPagingNavigator code -
and then I create a subclass from PagingNavigator, and create the markup. 
MyAjaxPagingNavigator extends from my own PagingNavigator subclass. But I
have a problem my own class doesn't work...If I clicked to next page, the
entire page is refresh,   I don't understand why?

Is there another solution to change the AjaxPagingNavigation Style?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p2297746.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



AjaxRequestTarget + add component

2010-05-24 Thread Ivoneta

Hi.

I have two panels inside a webPage.
In the first Panel I have a form with a ajax button. When I submitted de
form the two panels should be replace and target.
 
In the code I replace the firstPanel, them I add to te target this: 
target.addComponent(panel);
I do the same for the second panel.
So, I have two target.addComponent(panel); , and I get an error (Null
pointer exception).

I wonder if it's not possible have two  target.addComponent(panel) in the
same place?




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-add-component-tp2228735p2228735.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: replace panel problems

2010-05-19 Thread Ivoneta

I have one question!

I assume when inicialize de GenericDomReadyTailJavaScriptBehavior, the
parameter should be a string with the JavaScript content, right?

I could define the jQuery functions in a js file and call the function that
I need from this AbstractBehavior class?

I think, if you have a big project, you repeat js code, because a function
could use in more than one component.

I did a  test, I put a simple js code 

function prueba(){
alert('funciona0');
}

and I called it in the html associate with the panel (the replacement)

 div class =validityCombo tex_black_14_normalselect
id=validitiesComboBox wicket:id=validitiesComboBox
onchange=prueba()/select/div
 
and it works fine!

so, the problem is the dom ready event, ($(document).ready(function())
Jquery function  :(

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2223633.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



replace panel problems

2010-05-18 Thread Ivoneta

I have a web Page with a panel. When I click a ajax button, the panel is
replace. In  the new panel the javaScripts functions doesn't work. Why that
happened? What am I missing?
Here is the code

the webpage html
head
 script language=JavaScript1.2 src=views/js/accordion.js/script
/head
body
div class=quotPan2 bg_gray_plane wicket:id=CreateQuotePanel /div
/body

here the submit function of the ajaxButton :
add(new AjaxButton(CreateQuoteButton, new
ResourceModel(CreateQuoteButton)){
 public void onSubmit(AjaxRequestTarget target, Form form){
Panel panel = this.findParent(CreateQuotePanel.class);
Panel secondPanel = new
EditQuotePanel(panel.getId(),properties);
secondPanel.setOutputMarkupId(true);
panel.replaceWith(secondPanel);
panel = secondPanel;
target.addComponent(panel);
}
});

The javaScriptfunctions doesn't work only in the component panel, in the
rest of the page, it works normally! I suspect that I do something wrong in
the replacement

I hav

An
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221878.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: replace panel problems

2010-05-18 Thread Ivoneta

In the web Page head. Is the only place where I initialize the js.



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221908.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: replace panel problems

2010-05-18 Thread Ivoneta

Why do I inicialize the js every time?
I don't understand that! 
it's so complicated! :(
Is there another way to do it?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221923.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: replace panel problems

2010-05-18 Thread Ivoneta

I work with JQuery.
I read in another post that the dom ready event isn't fired.
it is right?

I suspect I should do the js initializes every time!

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221952.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: setOutputMarkupPlaceholderTag + value

2010-05-17 Thread Ivoneta

Yes hiddenField is the solution...
Thanks Igor
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-value-tp2196140p2219895.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



Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta

Hello
I have a panel with an ajax button. When the button is clicked the ajax
event replace the current panel. 
I don't understand why after replaces the panel, the javascripts functions
doesn't work.

I added the javascript resources in the head of my webpage, in the
traditional way
html xmlns:wicket
head
titleFrontEnd Seguros/title
  script language=JavaScript1.2
src=views/js/accordion.js/script
/head
body

What things do I suposse to do to the JavaScript works?What is wrong?
Please help mee

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220030.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: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta

in the html for the webPage, I have this

  head
titleFrontEnd Seguros/title
link href=views/css/ui.all.css rel=stylesheet type=text/css/
link href=views/css/QuotePage.css rel=stylesheet
type=text/css/
script language=JavaScript1.2
src=views/js/jqueryMin.js/script
script language=JavaScript1.2 src=views/js/ui.core.js/script
script language=JavaScript1.2
src=views/js/ui.datepicker.js/script
script language=JavaScript1.2
src=views/js/ui.datepicker-es.js/script
  script language=JavaScript1.2
src=views/js/ui.datepicker-fr.js/script
  !--script language=JavaScript1.2
src=views/js/accordion.js/script--
/head
body
  div class=quotPan2 bg_gray_plane wicket:id=CreateQuotePanel
/div
  div wicket:id=InsuranceObjectInformationPanel/div
  div wicket:id=InsuranceOptionsPanel/div
/body

in the CreateQuotePanel, I have a form , with two jquery datePickers
fields(this fields are rendering with jQuery and CSS) and an ajax button.
When button is clicked the panel is replaced for another one, that contains
another form with a ajax link. If the ajax link is clicked, the panel is
replaced again. The replaced panel should have a two jquery datePickers
fields, but it doesn't work, they don't render!

In the main html is the only place where I inicialize the javascript!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220086.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: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta

The first time the datepicker field is initialized when the DOM is ready
$(document).ready(function(){
   $('#initialDate').datepicker({
  
  changeMonth: true,
  changeYear: true,
  showOn: 'button',
  buttonImage: 'views/images/calendar.jpg',
  buttonImageOnly: true
  });
}

If I use AjaxRequestTarget#appendJavascript() Will I to put all the
functions associate with the things that I need in it?
is there another form to inicialize the javascript? Not only pieces of it?
I ask you, because put all the content of the javascript like a parameter in
the AjaxRequestTarget#appendJavascript() for all the replace panels that I
need to do, is like repetitive!



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220181.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



setOutputMarkupPlaceholderTag + value

2010-05-12 Thread Ivoneta

Hello!
I need to manage the locale (choose from a combobox) in javascript. So I
will create a hidden field  and then get in javascript.
 I create a hidden text field:

TextField locale = new TextField(hiddenLocale,new
Model(getSession().getLocale().getLanguage()));
locale.setVisible(false);
locale.setOutputMarkupId(true);
add(locale); 
   
in the html :
input type=text id=hiddenLocale wicket:id=hiddenLocale/ 

The problem is when this texfield is render,  the value (of the text field) 
is not in the html input, so in javascript the value is undefined.

is there any way to render the value??

I don't know this is the best option to set a value in javascript, but is
the only way to found to do it!

pleaseee, help meee!!

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-value-tp2196140p2196140.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