Hi all,
I'm using a Resource Link with a WebResource to show a PDF Document in the
browser. This works fine for Websphere 6.1.0.2 on Windows 2003 Server but
fails on WebSphere 6.1.0.2 on Solaris:
[03.12.10 08:59:32:930 CET] 0024 SystemOut O 2010-12-03
08:59:32,929 returning
Hi Dan,
I don't have time to investigate deeper your application but here are the
common recommendations:
- don't share components between pages
- share their models. even better - share just pointers which will be used
by the models to find the data
Martin
On Fri, Dec 3, 2010 at 3:28 AM, Dan
Hi
Yeah so at present, what I do is when the user
1. Adds a new phone number, I add this to the existing list of phoneNumbers
in the UI but yet to be persisted
2. User now clicks Save - This saves the Main object ie a Person and since
the new phone number is added to the collection while I save
Dan,
Thanks mate. I am yet to digest all that. I am going to get back to you and
see if it all helped.
Thank you for the time
Cheers
niv
On Fri, Dec 3, 2010 at 1:06 AM, Dan Retzlaff dretzl...@gmail.com wrote:
Yes, copying entities from the entity's association collection into another
afaik problem is you are doing form.getmodelobject(),that form could be ajax
submitted and so you are trying to initialize associate
collection in different session..
i don't understand your 1. and 2.
why are you adding to list when user has not clicked on save ?
i think adding a new phone
in the process of expanding the number of languages my wicket
application is available in, I'm running into the question of tracking
properties files.
In particular, I want to be able to get some kind of feedback about
missing translations; mismatches between property files would be
sufficient.
Not sure how other IDEs but in IntelliJ once you have at least one
translation beside default and you open any of them there at the bottom of
the freame are two tabs to switch between Text and Resource bundle. In
Resource bundle view it will highlight in red any property that is not
available in
See differences (only) with the following snippet which assumes the
correct/original properties in messages.properties ('englisch').
It will create a property file for the missing keys for 'de' (german)
and shows which original keys are unused
public static void main(String[] args) throws
Hello,
In my code following lines are present and works as expected.
.java file for Panel contains a FeedbackPanel and displays warning message
using following code:
info(getLocalizer().getString(deleteConfirm, this));
application.properties file contains
deleteConfirm: Do you want to delete
I think you can do it as follows:
deleteConfirm: Do you want to delete user ${name} from the list?
and
getLocalizer().getString(deleteConfirm, this, new ModelUser(user));
Assuming User is a bean with a getName() method.
Ernesto
On Fri, Dec 3, 2010 at 12:31 PM, sap2000 sap2...@indiatimes.com
thanks; I seem to be getting this hint more and more often.
It's not built into my IDE, eclipse, hopefully there is a plugin with
similar functionality.
cheers, Frnak
On Fri, Dec 3, 2010 at 11:43 AM, Peter Miklosko peter.b...@gmail.com wrote:
Not sure how other IDEs but in IntelliJ once you
Why not read the phones into a different list that you edit and
when you're done, you update the entity.
On Fri, Dec 3, 2010 at 2:20 AM, Nivedan Nadaraj shravann...@gmail.com wrote:
Vineet
I have not tried that. In this scenario, it will overwrite the phone's the
user may have added to a list
ok. thank you.
but is there any way when you don't have a bean?
- Shantanu
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Internationalization-dynamic-message-for-feedback-Panel-tp3070945p3071012.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi all,
I want to extend Wicket's Button to do some extra styling (image/etc):
What I want to write in my markup is:
button wicket:id=myButton type=submit class=positive
So my own implementation of the button is responsible for adding the image
and the label.
The expected HTML output should
What do you want to use instead? A map? I think it will also work with
a map: map.put(name, Bla Bla). If not I think old Java style
properties are also supported (thought I'm not 100% sure)
property = The user {0} will be deleted. Proceed?
and then passing an array of Object.
Ernesto
On Fri,
I just happened to be in that part of my code , so here goes :
MapString, String map = new HashMapString, String();
map.put(username, user.getDisplayName);
MapModelString, String values = new MapModelString, String(map);
String message = getLocalizer().getString(deleteConfirm, values);
etc...
--
I just happened to be in that part of my code , so here goes :
MapString, String map = new HashMapString, String();
map.put(username, user.getDisplayName);
MapModelString, String values = new MapModelString, String(map);
String message = getLocalizer().getString(deleteConfirm, values);
etc...
--
Hi all, here's the case:
I have an object, let's say a, which has a member b which has two members:
owner and driver of same type.
In a page I have a checkbox which when being pressed, sets driver = owner
and the opposite and I have the components bellow:
TextFieldString ownerName with
Maybe this: http://www.mail-archive.com/users@wicket.apache.org/msg35946.html
**
Martin
2010/12/3 Poko Booth poko.bo...@gmail.com:
Hi all, here's the case:
I have an object, let's say a, which has a member b which has two members:
owner and driver of same type.
In a page I have a checkbox
Nope...Just tried that, same result. I can't understand why
components.modalChanged() fixes this problematic behavior... Why is the
modal window messing with the parent page's components model???
Thanx for the answer though, you were too fast, thought it would be it :)
On Fri, Dec 3, 2010 at
class StyledButton extends Button {
public StyledButton(...) {
super();
add(new SimpleAttributeModifier(class, positive));
}
@Override
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag
openTag) {
replaceComponentTagBody(markupStream, openTag, );
}
}
--
Thanks for your reply but I prefer to add the image and label via
add(new Image(..,...));
add(new Label(..,..));
Instead of replacing the body.
Is that possible as well?
Stefan
2010/12/3 Alexander Morozov alexander.v.moro...@gmail.com
class StyledButton extends Button {
public
Hmmm.. Turns out it's not the modal window the one causing the problem.
The modal was activated by an ajaxsubmitlink and the page form had required
components thus errors took place.
I changed those links to ajaxlinks and the problem now appears only after
the user submits the page form with
maybe this can help you:
http://cal10n.qos.ch/index.html
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hello
I got the following error trying to provide custom render for ListView
WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).
New class
you need to call MarkupContainer#renderAssociatedMarkup()
see https://gist.github.com/468502 for an example with
WebMarkupContainerWithAssociatedMarkup
On Fri, Dec 3, 2010 at 3:36 PM, alex shubert alex.shub...@gmail.com wrote:
Hello
I got the following error trying to provide custom render
You might want to check that you are adding your components in the correct
place, hierarchically speaking...
I always forget to add elements to the item like so...
protected abstract void populateItem(final ListItemT item){
item.add(new Component(...)); -- correct
add(new
Alex, please ignore me listen to Martin. My english reading skills need
improving :-)
On 03 Dec 2010, at 9:47 AM, Eugene Malan wrote:
You might want to check that you are adding your components in the correct
place, hierarchically speaking...
I always forget to add elements to the item
Martin,
thanks a lot.
On 3 December 2010 17:45, Martin Grigorov mgrigo...@apache.org wrote:
you need to call MarkupContainer#renderAssociatedMarkup()
see https://gist.github.com/468502 for an example with
WebMarkupContainerWithAssociatedMarkup
On Fri, Dec 3, 2010 at 3:36 PM, alex shubert
Looks like onComponentTagBody is never called for ListView
I overrided it with copy-paste from Panel and .. nothing. Even If I
replace method body with Exception nothing happens...
On 3 December 2010 17:45, Martin Grigorov mgrigo...@apache.org wrote:
you need to call
Read the ListView javadoc: it states that a ListView has no markup
itself. Override ListItem's onComponentTagBody instead...
Martijn
On Fri, Dec 3, 2010 at 4:15 PM, alex shubert alex.shub...@gmail.com wrote:
Looks like onComponentTagBody is never called for ListView
I overrided it with
More information: Looking at the wicket ajax debug, it appears that it is
placing the javascript to open the dialog ahead of the
$(#component).dialog(...) Basically, the plugin rendering javascript is
being executed AFTER dialog.open(target), and therefore you never see it.
Anything you add
Hey all,
Interesting thing I encountered today. I have a Panel that provides it's
own markupstream that is dynamically created from XML/XSLT. Essentially, it
scans the markup stream for wicket:ids and then calls a
getWicketComponent(String wicketId) that generates different components
based
We are currently serving our photos from the following URL:
http://mydomain.com/base/resources/app/photo?bid=53060cid=22288
However we would like the URL to be:
http://mydomain.com/base/resources/app/photo/53060/22288/image.jpg
We are currently mounting our shared resource as follows:
Additional supporting details:
from code:
@Override
public void onClick(AjaxRequestTarget target)
{
viewReqModal.setModelObject(requirementService.find(66L));
target.addComponent(viewReqModal);
Hi I am building an app on google app engine following the tutorial mentioned
above and it's working fine except it seems like it's serializing data to
session table and everyone once in a while it exceeds the 1MB blog limit.
Is there something that can done about this like tell it not to
May have found answer here
http://thoughts.inphina.com/2010/10/20/managing-wicket-serialization-problem-on-google-app-engine/.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-Google-App-Engine-Compatible-tp1889511p3071659.html
Sent from the Users forum
Martijn
thanks for your patience and help. Sometimes I miss obvious things.
Only one question left: why onComponentTagBody implemented on
ListView if it's never called?
I miss something clear again?
On 3 December 2010 18:18, Martijn Dashorst martijn.dasho...@gmail.com wrote:
Read the ListView
Hello,
I'm trying to open a modal window without ajax request (when the page is
loaded). I've looked at
https://issues.apache.org/jira/browse/WICKET-12
https://issues.apache.org/jira/browse/WICKET-12
but trying the proposed solution does not work in my case. I can see in the
log that the
Are you by any change using the maven-gae-plugin ?
If so, did you use archetype supplied?
On Fri, 2010-12-03 at 11:48 -0800, jgardner16 wrote:
May have found answer here
http://thoughts.inphina.com/2010/10/20/managing-wicket-serialization-problem-on-google-app-engine/.
Hope this helps
http://apache-wicket.1842946.n4.nabble.com/opening-ModalWindow-on-page-load-td3055618.html
Proposed solution works for me.
Regards,
Ernesto.
On Fri, Dec 3, 2010 at 9:32 PM, hok ivanvasi...@gmail.com wrote:
Hello,
I'm trying to open a modal window without ajax request
Hi,
you can implement a custom IValidator to attach to userid field or a
custom IFormValidato for your input form. Do you think they could work
for your application?
Hi,
a general Question, and I am interested in how you would solve that?
I have a couple of form elements, that I want to
Hi
It's mostly working for me as well, except that the downloaded file has
.html appended to it's name. Any hints?
-Val
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p3071504.html
Sent from the Users
Show your code?
Ernesto
On Fri, Dec 3, 2010 at 7:06 PM, val360 val_wic...@360works.com wrote:
Hi
It's mostly working for me as well, except that the downloaded file has
.html appended to it's name. Any hints?
-Val
--
View this message in context:
final AJAXDownload download = new AJAXDownload() {
@Override
protected IResourceStream getResourceStream() {
return new FileResourceStream(theDatabase.getFile());
}
@Override
protected String getFileName() {
return theDatabase.getFile().getAbsoluteFile().getName();
Thanks for the response, Martin. I'm with you on lack of free time. :)
Using a model is not sufficient. The gotcha is that it's very important
where that model lives in the component graph. If both pages hold a
reference to the model, then serialization/deserialization causes the object
aliasing
Yep, or least something comparable. You need to re-attach those
objects you're using to the session somehow, and often the easiest way
to do that is to just load them again if they were previously
detached. If you worry about the database being hit more than you
want, you are probably prematurely
it is a good idea to always redirect to a bookmarkable url after
invalidating your session.
-igor
On Thu, Dec 2, 2010 at 2:08 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
e.g. you could:
1-Place and AbstractDefaultAjaxBehavior on you page (e.g. to some div
on your page). Use
please create a jira issue to add the warning.
-igor
On Fri, Dec 3, 2010 at 8:10 AM, jbrookover jbrooko...@cast.org wrote:
Hey all,
Interesting thing I encountered today. I have a Panel that provides it's
own markupstream that is dynamically created from XML/XSLT. Essentially, it
scans
Isn't this what will happen next time he tried to visit any page on
the server?
Ernesto
On Sat, Dec 4, 2010 at 5:13 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
it is a good idea to always redirect to a bookmarkable url after
invalidating your session.
-igor
On Thu, Dec 2, 2010 at 2:08
50 matches
Mail list logo