Thanks guys!

2014-02-22 Thread Farrukh SATTOROV
I just would like to say thanks themes who made event mechanism in wicket,
this is cool, guys!!!
)

-- 
Regards, Farrukh


Re: bug or new feature

2014-02-22 Thread Martin Funk
Hi Ernesto,

without having looked into this.
It sound similar to:
https://issues.apache.org/jira/browse/WICKET-3277

mf


Am 22.02.2014 um 08:04 schrieb Ernesto Reinaldo Barreiro reier...@gmail.com:

 Guess %- text % is giving problems
 
 
 On Sat, Feb 22, 2014 at 7:50 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:
 
 Maybe related to
 
 https://issues.apache.org/jira/browse/WICKET-5288
 
 ?
 
 
 On Sat, Feb 22, 2014 at 7:46 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:
 
 On Wicket 6.13.0 following code
 
 script type=text/template id=message-template
div class=sender pull-left
div class=icon
img src=img/2.jpg class=img-circle alt=/
/div
div class=time
just now
/div
/div
div class=chat-message-body
span class=arrow/span
div class=senderTikhon Laninga/div
div class=text
%- text %
/div
/div
 /script
 
 was parsed OK. On Wicket 6.14.0 I get
 
 ==
 
 2014-02-22 07:42:48,618 [qtp757902664-22] ERROR
 [org.apache.wicket.DefaultExceptionMapper] - Unexpected error occurred
 org.apache.wicket.markup.MarkupException: Malformed tag (line 73, column
 17)
 at
 org.apache.wicket.markup.AbstractMarkupParser.parseMarkup(AbstractMarkupParser.java:301)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.AbstractMarkupParser.parse(AbstractMarkupParser.java:183)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:51)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:57)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:544)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:305)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:236)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.getBaseMarkup(InheritedMarkupMarkupLoader.java:99)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:68)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:544)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:305)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:236)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:194)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.MarkupContainer.getAssociatedMarkup(MarkupContainer.java:405)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Component.getMarkup(Component.java:728)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Component.internalRender(Component.java:2346)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Component.render(Component.java:2309)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at org.apache.wicket.Page.renderPage(Page.java:1024)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:274)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
 ~[wicket-core-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 ~[wicket-request-6.14.0.jar:6.14.0]
 at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
 [wicket-core-6.14.0.jar:6.14.0]
 at
 

wicket-cdi and org.hibernate.LazyInitializationException

2014-02-22 Thread danisevsky
Hi,

I am running wicket application on Jboss AS 7. I can't found out if for CDI
exists something like OpenSessionInViewFilter for Spring. I do not want use
fetch = FetchType.EAGER everywhere. Could someone give me an advice
please?

Thanks!


double type text field - auto roundsoff

2014-02-22 Thread nazeem
Hi I am having an issue with the Double text field which when keyed in for
eg, 604.43 rounds of to 604. I am using the txField.add(new
AjaxFormComponentUpdatingBehavior(onblur) { .. } . Inside this im doing
validations, if error or no error I am repaining the text field. When
repainting it the values changes from 604.43 to 604. During the on blur
event i get the value correctly.. But after the method completes and
repainted the value is changed to 604. How to trouble shoot this ? 

Regards
Naz

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628.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: double type text field - auto roundsoff

2014-02-22 Thread Sven Meier

Hi,

check FormInput from wicket-examples, it has a TextFieldDouble and 
happily accepts 604.43 without rounding.


How to trouble shoot this ?

Put a breakpoint into your model object's setter and check where the 
value is coming from.


Sven

On 02/22/2014 03:18 PM, nazeem wrote:

Hi I am having an issue with the Double text field which when keyed in for
eg, 604.43 rounds of to 604. I am using the txField.add(new
AjaxFormComponentUpdatingBehavior(onblur) { .. } . Inside this im doing
validations, if error or no error I am repaining the text field. When
repainting it the values changes from 604.43 to 604. During the on blur
event i get the value correctly.. But after the method completes and
repainted the value is changed to 604. How to trouble shoot this ?

Regards
Naz

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628.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




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



Re: get page instance in AtmosphereRequestHandler

2014-02-22 Thread Pierre Goupil
Hi,

In fact, it is this code:

Session.get().getPageManager().getPage(pageId);

(excerpt from DefaultMapperContext#getPageInstance(final int pageId))

which returns null: the Session.get().getPageManager() contains no pages
when I'm in my Atmosphere context.

Any thoughts, please?

Kind regards,
Pierre





On Sat, Feb 22, 2014 at 2:17 AM, Pierre Goupil goupilpie...@gmail.comwrote:

 Good evening,

 I'm trying to implement the unit test functionality of Wicket-Atmosphere.
 I'm stuck on a silly thing.

 I have this code in the class AtmosphereRequestHandler:

 @Override
 public void respond(final IRequestCycle requestCycle)
 {
 final Page page = (Page)Application.get().getMapperContext()
 .getPageInstance(this.pageKey.getPageId());
 final AjaxRequestTarget target =
 WebApplication.get().newAjaxRequestTarget(page);
 this.executeHandlers(target, page);
 }

 The page is always null, so I got an exception at the target creation,
 saying page can not be null. But I'm sure the pageId I provide is OK.

 Any idea?

 Regards,

 Pierre




-- 
Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as pas
mal.
Alors frappez-moi de musique !
Frappez-moi de musique, maintenant !

(Bob Marley : Trenchtown Rock)


Re: double type text field - auto roundsoff

2014-02-22 Thread nazeem
Hi Sven,

I had used in other places, this is not the case. it works perfectly fine. 

I had tried that break point approach as well before posting, my setter is
called with correct value. Only after the refresh or repaint in onBlur.. the
value changes in the form itselfto 604. Now when i hit submit the setter is
called with 604, because that is what is in field value. But during refresh
how it turns from decimal value to 604 ? that s what im not able to trouble
shoot.

Thank u for ur time. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/double-type-text-field-auto-roundsoff-tp4664628p4664631.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: Tooltips/Contextual menu with interactive content

2014-02-22 Thread ChambreNoire
Yup,

I found it shortly after my original post. I'm a bit apprehensive about
overriding jQuery styles but other than that it certainly looks promising.
Only problem, I'm running 1.4 on this project (old project no mandate to
upgrade to 6 unfortunately).

Chambre

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Tooltips-Contextual-menu-with-interactive-content-tp4664619p4664632.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: Tooltips/Contextual menu with interactive content

2014-02-22 Thread Sebastien
Hi Chambre,

Unfortunately wicket-jquery-ui is not compatible with wicket-1.4

Best regards,
Sebastien.



On Sat, Feb 22, 2014 at 5:08 PM, ChambreNoire a...@tentelemed.com wrote:

 Yup,

 I found it shortly after my original post. I'm a bit apprehensive about
 overriding jQuery styles but other than that it certainly looks promising.
 Only problem, I'm running 1.4 on this project (old project no mandate to
 upgrade to 6 unfortunately).

 Chambre

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Tooltips-Contextual-menu-with-interactive-content-tp4664619p4664632.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