hi again,
I realized this happens if the open dialog for file is triggered by a js,
not by pressing the browse button.
if I press the browse button, it works fine.
Probably is something wrong with the logic in my js.
if you have any idea, let me know.
Thanks.
--
View this message in context:
Thank you Paul,
But in my case I'm using IDataSource from immethod grid to retrieve the
current page. In client code after inserting the new record in the database
I'm obtaining the corresponding page number (greater than the one cached by
inmethod grid) and let the grid display itself
Hi,
There is a feature request for this in wicket-bootstrap project:
https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/128
You can implement it yourself for other types of tooltips.
On Mon, Mar 4, 2013 at 1:48 PM, anton antoniovalenciasp...@hotmail.comwrote:
Thanks Andrea !!
Yes, I could store the value on the Panel which holds the form - but then I
couldn't use it as stateless. Or in WebSession, but it's not adequate...
Also. I could use a String and make the conversion hardcoded..
But I searched the converters, and I tried this (maybe a little
Hi,
I recently needed to deploy a quickstart to Heroku. By reading this
question, I made a quick implementation of IDataStore using Redis, you can
find the blog post regarding this at the following URL :
http://www.bloggure.info/work/wicket-6-cdi-on-heroku.html
Hope it'll help.
Regards,
Cedric
Hi all,
let's have a bookmarkable page with a form.
This form is submitted after session expiration.
The result is that Wicket ignores the input and renders the page as it
was just loaded by URL.
How can I make Wicket process the POST body and do the whole cycle -
fill the models, validate,
Hi,
Make the page stateless, i.e. StatelessForm instead and avoid any other
stateful components.
On Mon, Mar 4, 2013 at 4:23 PM, Ondrej Zizka ozi...@redhat.com wrote:
Hi all,
let's have a bookmarkable page with a form.
This form is submitted after session expiration.
The result is that
Any thoughts on this?
___
Stephen Walsh | http://connectwithawalsh.com
On Sat, Mar 2, 2013 at 4:26 PM, Stephen Walsh step...@connectwithawalsh.com
wrote:
I think that's what I'm having trouble with. I have created the list view
like this:
//
Any thoughts on this please?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656936.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To
Hello Saty
You should check methods markItemDirty(IModel model),
markAllItemsDirty() and update(). This are the methods you are supposed
to be calling when refreshing the grid's content.
You should also make sure that the equals() method of your model objects
return false when both objects
Thanks Marc, i will take a look at these methods if they can help, however my
equals method can not help here as i said previously some columns are
derived in the sense they dont return an attribute of the object but a value
which is derived from the context (and object state) in which the method
Ok, I see.
Either way if it is a DataGrid, calling markAllItemsDirty() and update()
from your ajax request should do the job.
--
Marc Nuri
www.marcnuri.com
On Mon, Mar 4, 2013 at 4:35 PM, saty satya...@gmail.com wrote:
Thanks Marc, i will take a look at these methods if they can help, however
grid.markAllItemsDirty();
grid.update();
This does not help, for some reason grid is smart not to regenerate a row
for a model it already did.
I can see my getXXX method is called by grid only first time and than its
never get called again so the column shows what was calculated for the first
The problem must be in your row models.
What does your IDataSource implementation look like?
--
Marc Nuri
www.marcnuri.com
On Mon, Mar 4, 2013 at 4:55 PM, saty satya...@gmail.com wrote:
grid.markAllItemsDirty();
grid.update();
This does not help, for some reason grid is smart not to
public class DataSource implements IDataSourceMyModel {
private FilterMyModel myModelFilterChain;
public DataSource(FilterChainMyModel myModelFilterChain)
{
this.myModelFilterChain= myModelFilterChain;
}
What's the code for MyModel?
--
Marc Nuri
www.marcnuri.com
On Mon, Mar 4, 2013 at 5:14 PM, saty satya...@gmail.com wrote:
public class DataSource implements IDataSourceMyModel {
private FilterMyModel myModelFilterChain;
public DataSource(FilterChainMyModel myModelFilterChain)
ListString links = new ArrayListString();
ListView listView = new ListView(linksId, links)
{
void populateItem( )
{
IModelString model = getModel(); (or whatever its called)
Link link = new Link(linkId, model );
item.add(link);
}
}
Markup will be
Its a regular java bean with properties and setter and getter methods.
Grid uses the expression to map a column to a particular property on row
model (MyModel).
Thanks
--
View this message in context:
This problem is not replicating in Wicket 1.4.21.
On 03/01/2013 09:36 AM, Jered Myers wrote:
I added this problem to JIRA.
https://issues.apache.org/jira/browse/WICKET-5071
On 03/01/2013 08:29 AM, Jered Myers wrote:
The page is stateless, so it has the same value being set for
Just managed to get a workaround to fix the problem.
I have to add a dummy property to the model object and calculate that
property within my data source and than use that property to map to the
calculated column.
However since i can not change the state of original shared model object, so
i have
In your IDataSource code, you left out the implementation public
IModelMyModel model(MyModel object);, I'm quite suspicious that your
models are the source of the problem.
I'm assuming that you are using PropertyColumns in your grid, with these
columns, your getter method should be getting called
yes i am using property columns in grid to map columns to properties of
model.
Data Source is a very simple implementation just filter model objects in a
cache into a list of filtered model objects.
Context is user and also his filter settings.
If a user can not see value from source x so his
Also i put a print on every getter but it only prints on first call on a set
of rows, if you filter among those rows its never get called, i suspect the
grid has rows cached and its assuming nothing changed so using those rows
again as a subset of previously created rows.
Thanks
--
View this
You should start debugging your project instead of using print to see
what is really happening (call stack, variable values...).
PropertyColumn always calls the get method of your model object:
code
@Override
public IRenderableI newCell(IModelI rowModel)
{
return new IRenderableI()
{
public void
Actually i have overridden
public Component newCell(WebMarkupContainer parent, String componentId,
IModel rowModel)
{
...
}
to use a separate panel for cell content, due to other functions, will not
make any difference?
Thanks
--
View this message in context:
I bet we are getting to the source of the problem.
Non light-weight columns like yours, create the components just once when
the grid is first rendered. So the model instances you pass when you create
the Component will remain the same even if you update the grid.
I believe non-lightweight
Sure, this is the test code:
public class AbstractBasePageTester {
private WicketTester tester;
private StartApplication app;
@Mock
private CustomerService aService;
@Before
public void setUp() {
Thanks Marc, This is indeed the issue, i am going to make it light weight for
now and provide an alternate mechanism to launch the other features that are
stuffed in here at present.
Thank for helping me out.
--
View this message in context:
Thanks, I thought this answer will come. Let me ask differently:
What is it which prevents Wicket applying the input on the first request?
What's the conceptual difference between creating a page, rendering a
page, receiving a request and applying the incoming data,
versus creating a page and
Hi all,
I use the CDI integration.
new
CdiConfiguration(bm).setPropagation(ConversationPropagation.NONE).configure(this);
When the injection fails, it happens in init. Can I configure it to
set the field to null, as a NPE during page rendering is easier to
handle than init exception?
I am having a heck of a time trying to find any examples on this. I have
saved a string in a TextArea with the TinyMCE behavior in my database. I
want to output it with the associated HTML tags.
Any direction on this?
___
Stephen Walsh |
Nevermind, found setEscapeModelStrings(false)
___
Stephen Walsh | http://connectwithawalsh.com
On Mon, Mar 4, 2013 at 4:41 PM, Stephen Walsh step...@connectwithawalsh.com
wrote:
I am having a heck of a time trying to find any examples on this. I have
Hi,
On Mon, 04 Mar 2013 22:16:06 +0100, you wrote:
Thanks, I thought this answer will come. Let me ask differently:
What is it which prevents Wicket applying the input on the first request?
Please see the comments in ListenerInterfaceRequestHandler#respond()
Wicket ignores the input if the
this is how cdi works, if it cannot inject something it fails. notice
the top frame is inside weld not wicket nor wicket-cdi.
if you have things that can be optional you should inject
InstanceThing and query that for thing.
-igor
On Mon, Mar 4, 2013 at 1:25 PM, Ondrej Zizka ozi...@redhat.com
It is good to throw the RedirectToUrlException!
@Override
public void onSubmit() {
RedirectToUrlException objRedirect;
objRedirect = new RedirectToUrlException(http://www.163.com/;);
throw objRedirect;
}
Thanks for Vineetsemwal and Stephen's help!
--
View this message
I have an object that has a ListTag which is a simple object with a name,
id, etc. I'm attempting to use wicketstuff tagit, and my form has a
tagittextfield for this item. I'm hoping to get the comma separated string
into ListTag.
If I pre-populate the new object with a list, I get something
Write your own IConverter that converts ListTag to comma separated
string and vice-versa.
Sven
On 03/05/2013 02:20 AM, Stephen Walsh wrote:
I have an object that has a ListTag which is a simple object with a name,
id, etc. I'm attempting to use wicketstuff tagit, and my form has a
37 matches
Mail list logo