Re: 8.0.0-M1 MarkupNotFoundException

2016-10-18 Thread greg.johnson
sure,

i don't seem to have permission in jira to create an issue, am i missing
something?
username: gregjohnson

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675828.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 Appl - Cleanup & Scale

2016-10-18 Thread fzb
Hi Ernest,

Thanks for the feedback.




Ernesto Reinaldo Barreiro-4 wrote
>> Open Flash Chart - Chart (Pending Migration to JS based)
> Done that a lot on my own projects and it is pretty easy with wicket

Do you mean you had used lot of OFC or JS based charts. Can give few choices
u had used for JS.




Ernesto Reinaldo Barreiro-4 wrote
>> *1. Do not have URL for any document .. say Purchase Doc..  because it is
>> nested inside component hierarchy.
> Yous mount a page that shows that "entity" and use the same panel if it
> makes sense.

Is it better to design all entities as pages ? I was worried about
reconstructing the header for each click if we were to keep redirecting
pages. Reconstructing the header requires to iterate the roles, fetching
menus, etc..  Are there ways to cache the generated components say header in
this case and render only entity related contents.



Ernesto Reinaldo Barreiro-4 wrote
>>
>> cntr.addOrReplace(newComponent);
>> target.add(cntr);
>>
>> 90% of user interactions are via this method. Hence we are not able to
>> generate URLs for these internal UIs. If user needs to traverse to any of
>> these, then they navigate to the page.. click menu.. click tab to
>> navigate.
>>
> This is not enforced by wicket at all

Sorry i did not get this. Can you elaborate a little bit.. Is using replace
component heavy ? As per my understanding only the changed portion of the
page gets refreshed..  This is what is being done by JS fwk like react to
compare virtual DOM & actuam DOM. In this case we are doing it, whereas in
React it does it by itself. 

Thank you.
Regards
Fzb


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Appl-Cleanup-Scale-tp4675820p4675827.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: Is it possible to set the PDF Zoom level while loading pdf in ByteArrayResource ?

2016-10-18 Thread Martin Grigorov
This is not a Wicket question.
Please consult with the documentation of the PDF library you use.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Oct 18, 2016 at 8:18 PM, durairaj t  wrote:

>
>


Is it possible to set the PDF Zoom level while loading pdf in ByteArrayResource ?

2016-10-18 Thread durairaj t



Re: Wicket Appl - Cleanup & Scale

2016-10-18 Thread Ernesto Reinaldo Barreiro
Thanks for the pointer: did not know about this project :-)

On Tue, Oct 18, 2016 at 4:19 PM, Vit Rozkovec  wrote:

> I would recommend wkhtmltopdf as flying saucer does not play well with
> Bootstrap and CSS3 features in general.
>
> https://github.com/wkhtmltopdf/wkhtmltopdf
>
> For generating PDF I prefer flying-saucer and wicket
>>
>> https://github.com/reiern70/wicket-flyingsaucer
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket Appl - Cleanup & Scale

2016-10-18 Thread Vit Rozkovec
I would recommend wkhtmltopdf as flying saucer does not play well with 
Bootstrap and CSS3 features in general.


https://github.com/wkhtmltopdf/wkhtmltopdf


For generating PDF I prefer flying-saucer and wicket

https://github.com/reiern70/wicket-flyingsaucer



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



Check Group selected items called from other form loses the checked values

2016-10-18 Thread ganea iulia
Hi,
I have 2 forms.

Bottom form = testForm
- I have a listview with checkboxes.
As I needed a checkAll control also, I have uses CheckGroup,
CheckGroupSelector and Check wicket components.

Top form = testForm0
-I have only an link

The use case is the following:
I check one item (or all) in bottom form, but then I need to get the
selected values when click on link in top form.

The check doesn't do submit so the values are not retained. I alsways get
the
size = 0 message.

Could you tell me how I can manage this?

Here is the code:
=HTML=

   












Name
Code


Id





   








   





   






==JAVA==
private static final long serialVersionUID = 311508940740808005L;
private static final Logger logger = LogManager.getLogger(TestPage.class);
private TestForm tst;

public TestPage(IModel model) {
super(model);

TestForm0 tst0 = new TestForm0("testForm0");
tst0.setOutputMarkupId(true);
add(tst0);
tst = new TestForm("testForm", model);
tst.setOutputMarkupId(true);
add(tst);

}

class TestForm0 extends Form {

/**
*
*/
private static final long serialVersionUID = 1L;

public TestForm0(String id) {
super(id);

Link print = new Link("print") {
private static final long serialVersionUID = 15L;

@Override
public void onClick() {
System.out.println("size=" + tst.getCheckedTestBeans().size());
}
};
add(print);
}
}
class TestForm extends Form {
/**
*
*/
private static final long serialVersionUID = 1L;

private List checkedTestBeans;
public List getCheckedTestBeans() {
return checkedTestBeans;
}

public void setCheckedTestBeans(List checkedTestBeans) {
this.checkedTestBeans = checkedTestBeans;
}

public TestForm(String id, IModel model) {
super(id, model);

checkedTestBeans = new ArrayList();
TextField txtName = new TextField("txtName", new
PropertyModel(getModelObject(), "name"));
add(txtName);
txtName.setOutputMarkupId(true);
txtName.add(new AjaxFormComponentUpdatingBehavior("change") {
private static final long serialVersionUID = 1654345477970524731L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(txtName);
}

});

SubmitLink clearForm = new SubmitLink("clearForm", this){

/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void onSubmit() {
model.setObject(new TestBean());
TestForm.this.clearInput();
};
};
clearForm.setOutputMarkupId(true);
add(clearForm);
AjaxLink clearLink = new AjaxLink("clearLink", model)
{
/**
*
*/
private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {
model.setObject(new TestBean());
TestForm.this.clearInput();
target.add(TestForm.this);
txtName.setConvertedInput("");

}

};
clearLink.setOutputMarkupId(true);
add(clearLink);
///
CheckGroup group = new CheckGroup("group",
checkedTestBeans);
CheckGroupSelector cgs = new CheckGroupSelector("allCheck");
group.add(cgs);
List beans = Arrays.asList(new TestBean("Name1", "Code1", 1),
new TestBean("Name2", "Code2", 2));
final WebMarkupContainer itemsContainer = new
WebMarkupContainer("itemsContainer");
itemsContainer.setOutputMarkupId(true);
itemsContainer.add(new ListView("forEachItem", beans) {
/**
*
*/
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItem item) {
  item.add(new Label("itemName", new PropertyModel(item.getModel(),
"name")));
  item.add(new Label("itemCode", new PropertyModel(item.getModel(),
"code")));
  item.add(new Label("itemId", new PropertyModel(item.getModel(), "id")));
  item.add(new Check("itemCheck", item.getModel(), group));
}
  });
group.add(itemsContainer);
add(group);
//choice
List lst = new ArrayList();
lst.add("C1");
lst.add("C2");


ChoiceRenderer renderer = new ChoiceRenderer("code") {

private static final long serialVersionUID = 8875819661197521211L;

@Override
public Object getDisplayValue(String arg0) {
return (arg0.equals("C1") ? "Code1" : "Code2");
}

@Override
public String getIdValue(String arg0, int arg1) {
return arg0;
}

@Override
public String getObject(String paramString, IModel> paramIModel) {
// TODO Auto-generated method stub
return paramString;
}

};
DropDownChoice code = new DropDownChoice("code", lst,
renderer);
code.setOutputMarkupId(true);
code.setModel(new PropertyModel(getModelObject(), "code"));
add(code);
}

@Override
protected void onSubmit() {

logger.info("OnSubmit");
System.out.println("size=" + checkedTestBeans.size());

}
}


Re: Wicket Appl - Cleanup & Scale

2016-10-18 Thread Ernesto Reinaldo Barreiro
Hi,

My answers inline

Here are few UI snaps of the application we had built using wicket.
>
> 
>  16-10-17_08.png>
>  16-10-18_08.png>
>
> Nice.


> The stack we had used to build this app are ..
>
> Wicket - Client
> Hibernate - Persistence
> ehCache - Caching
> Spring - to glue all pieces together
> MySql (AWS RDS)  - Database
> CXF - REST
>

Normally mount resource in Wicket for my limited REST like needs (mostly
get back some JSON)


> Jasper - Reports
>

For generating PDF I prefer flying-saucer and wicket

https://github.com/reiern70/wicket-flyingsaucer



> Open Flash Chart - Chart (Pending Migration to JS based)
>

Done that a lot on my own projects and it is pretty easy with wicket


> Overall meets the current requirement.
>
> The Top 3 problems we want to address are ..
>
> *1. Do not have URL for any document .. say Purchase Doc..  because it is
> nested inside component hierarchy.
> *
>

Yous mount a page that shows that "entity" and use the same panel if it
makes sense.


>
> We designed only the top level icon based navigation as Page based. Which
> means to navigate from one page to another we use
> setResponsePage.(newPage)..  For these pages we have URLs.  For the second
> level menu (black bar - below the icon menu) & internal tab navigation,
> going from list view to detail view etc we had use component replace .. by
> repainting the container with the new content.
>

Add a button see in a different page... as mentioned above. Wicket is not a
limitation there.


>
> cntr.addOrReplace(newComponent);
> target.add(cntr);
>
> 90% of user interactions are via this method. Hence we are not able to
> generate URLs for these internal UIs. If user needs to traverse to any of
> these, then they navigate to the page.. click menu.. click tab to navigate.
>

This is not enforced by wicket at all


>
> *4. It is getting bigger n bigger.. Need to avoid making it monolithic *
> We wanted to develop new features as micro services and slowly break the
> whole app in to..  For service layers we understand how to group
> functionalities.. for UI how to we break it in to multiple ? how to regroup
> them as single app for the user.
>

Something similar to OSGI? Or modules that contribute elements at some
points at the UI.

https://code.google.com/archive/p/antilia/wikis/OSGiPowered.wiki




>
> Addressing these 4 will take our app to the next level. Please give your
> suggestions on these ..
>
> - fzb
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n
> 4.nabble.com/Wicket-Appl-Cleanup-Scale-tp4675820.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro