Giter Site home page Giter Site logo

primefaces-extensions / primefaces-extensions.github.com Goto Github PK

View Code? Open in Web Editor NEW
69.0 69.0 22.0 2.8 MB

Organization repo, only for homepage, wiki and issue tracker

Home Page: https://primefaces-extensions.github.io/

HTML 98.96% JavaScript 0.46% CSS 0.57%

primefaces-extensions.github.com's Introduction

PrimeFaces Extensions


Maven Actions Status Security Rating Discord Chat Stackoverflow License: MIT

This is an overview page, please visit primefaces-extensions.github.io or the showcase for more information.

Versioning

There are multiple versions available please check which one for your PrimeFaces release version.

Version Explanation
8.x PrimeFaces 8.0
10.x PrimeFaces 10.0.0
11.x PrimeFaces 11.0.0
12.x PrimeFaces 12.0.0
13.x PrimeFaces 13.0.0
14.x PrimeFaces 14.0.0

Maven

Release (javax)

<dependency>
    <groupId>org.primefaces.extensions</groupId>
    <artifactId>primefaces-extensions</artifactId>
    <version>${primefaces-extensions.version}</version>
</dependency>
<dependency>
   <groupId>org.primefaces.extensions</groupId>
   <artifactId>resources-monacoeditor</artifactId>
   <version>${primefaces-extensions.version}</version>
</dependency>

Release (jakarta)

<dependency>
    <groupId>org.primefaces.extensions</groupId>
    <artifactId>primefaces-extensions</artifactId>
    <version>${primefaces-extensions.version}</version>
    <classifier>jakarta</classifier>
</dependency>

Snapshots

<repository>
    <id>sonatype-snapshots</id>
    <name>Sonatype Snapshot Repository</name>
    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
    <releases>
        <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

<dependency>
   <groupId>org.primefaces.extensions</groupId>
   <artifactId>primefaces-extensions</artifactId>
   <version>${primefaces-extensions.version}</version>
</dependency>

Namespaces

The PrimeFaces Extensions namespace is necessary to add PrimeFaces Extensions components to your pages.

xmlns:pe="http://primefaces.org/ui/extensions"

Getting Started

Please refer to the Getting Started Guide to see what you need to get started and any optional libraries.

Migration Guide

Please refer to the Migration Guide.

Demo

Please refer to the Showcase submodule in order to see the full usage of the components. Simply do the following to run the Showcase:

cd showcase
mvn clean jetty:run

Then open your web browser to http://localhost:8080/showcase-ext/

Issues

Please report all issues here.

Releasing

  • Run mvn versions:set -DgenerateBackupPoms=false -DnewVersion=8.0.2 to update all modules versions
  • Commit and push the changes to GitHub
  • In GitHub create a new Release titled 8.0.2 to tag this release
  • Run mvn clean deploy -Prelease to push to Maven Central

License

Licensed under the MIT license.

SPDX-License-Identifier: MIT

primefaces-extensions.github.com's People

Contributors

jepsar avatar melloware avatar ova2 avatar sudheerj avatar tandraschko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

primefaces-extensions.github.com's Issues

Item titles for TriStateCheckBox

It would be nice to have. Because, we often need some explanation for the icons.

stateOneTitle, stateTwoTitle, stateThreeTitle attributes would work.

That way, the title could be shown as a "tooltip" with the jquery tooltip plugin.

Mauricio, could you please add "title" attribute to TriStateCheckbox, -ManyCheckbox?

Don't forget to add it to the tag lib. too.

Check also this issue in PF http://code.google.com/p/primefaces/issues/detail?id=4861

Showcase tasks (update old link / remove old text)

Please update the link "Homepage" in the showcase. It should refer the new homepage on GitHub. Also remove this sentence from the master template "Consider links on the top right "Run with Mojarra" / "Run with MyFaces" please." The links are not available more.

Und you can add you to the developers list too (dialog link at the top right corner).

Add pe:multiFileDownload

Extend fileDownload tag, FileDownloadTagHandler, FileDownloadActionListener, StreamedContent, DefaultStreamedContent. The main goal is to generate a zip file of many StreamedContents.

  1. Allow to add childs of type StreamedContent to the new ZipStreamedContent (extends StreamedContent). ZipStreamedContent zips all containing childs of type SreamedContent.
  2. Allow to handle byte arrays (byte[]) as content and not only InputStream.
  3. FileDownloadActionListener should distinguish between StreamedContent and ZipStreamedContent. It should zip files and generate zipped output if "file" implements ZipStreamedContent.
  4. FileDownloadActionListener should be able to be used in portlet environment (no direct access to reqiest object!).
  5. Add a new attribute "responseHeader" to the tag fileDownload which accepts a single value, an array, a collection or list of string(s). Possible response headers are e.g. Cache-Control and Pragma. FileDownloadTagHandler should be extended to this attribute.

Don't forget to check in action listener if response was completed. If yes ==> return from action listener. Call facesContext.responseComplete() (s. PF's FileDownloadActionListener) is not enough because events are queued and all action listeners are called in INVOKE_APPLICATION phase until the phase finished (regardless of set flags). At the end of each phase UIViewRoot.clearFacesEvents() is called, checks set flags and clears queued events if nessesary.

PF related bug http://code.google.com/p/primefaces/issues/detail?id=1656

By the way, iframe will not solve problem with ajaxified components. FileDownload cann't be ajaxified.

Project cleanup

  • Cleanup POM's
  • Remove unused reporting maven config (they acutally are for maven2)
  • Move all showcase dependencies/setttings stuff to the showcase pom
  • Clean up showcase filters, overwrites and other stuff

Timeline: manual zoom setting

In the Timeline component, the current zoom level is automatically adjusted to cover all added events.

It would be fine if the user can set a predefined zoom level, based on the time range he wants to show when the component renders, like for example "day", "week", "hour", etc.

Error with Liferay faces bridge when using the pe:tooltip component

Hi there.
When I use the tooltip component in a portlet and deploy it to Liferay on JBoss with faces bridge, I get the following error message:

17:17:39,230 ERROR [com.liferay.faces.bridge.context.url.BaseURLNonEncodedStringImpl] (http--0.0.0.0-8080-3) Invalid name=value pair=[amp;v=0.6.2] in URL=[http://localhost:8080/group/guest/db1?p_p_id=AIP_VisualizacaoGrafico_WAR_AIP_Portlet_Config_INSTANCE_NqvJU1LtkoBp&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_cacheability=cacheLevelPage&p_p_col_id=column-1&p_p_col_count=1&_AIP_VisualizacaoGrafico_WAR_AIP_Portlet_Config_INSTANCE_NqvJU1LtkoBp_javax.faces.resource=primefaces-extensions.js&_AIP_VisualizacaoGrafico_WAR_AIP_Portlet_Config_INSTANCE_NqvJU1LtkoBp_ln=primefaces-extensions&amp;v=0.6.2]

I've reported this to the Liferay Faces forum, and the project leader believes it's a bug in primefaces-extensions. The thread is at http://www.liferay.com/community/forums/-/message_boards/message/20730138 .
Thank you.

Nested <pe:dynaForm> in UIData components do not work (bean not updated)

What steps will reproduce the problem?
See http://forum.primefaces.org/viewtopic.php?f=14&t=25750 for more informations.

What is the expected output? What do you see instead?
Output is correct but bean is not updated on form submit.

What version of the product are you using? On what operating system?
Primefaces 3.4.1, Primefaces-ext 0.6.0-SNAPSHOT, Windows 7, Tomcat 7

Note for me to check this issue too: http://code.google.com/p/primefaces/issues/detail?id=3640

Evolution of AjaxExceptionHandler for non ajax requests

I made a "component" like AjaxExceptionHandler but that is compatible with both ajax/non ajax submit.

The steps to create it:

1: Add a dialog in the page

<p:dialog id="globalErrorDialog" header="#{errorHandlerModelBean.title}"       
widgetVar="dlg1" width="500" height="300">
<h:inputTextarea value="#{errorHandlerModelBean.trace}" cols="70" rows="20" style="color: red;" />
</p:dialog>

2: Create a CustomExceptionHandler that display this dialog in case of error:

ErrorHandlerModelBean bean = (ErrorHandlerModelBean) FacesContext.getCurrentInstance()
                        .getApplication()
                        .evaluateExpressionGet(FacesContext.getCurrentInstance(), 
                        "#{errorHandlerModelBean}", ErrorHandlerModelBean.class);
                bean.setTitle(summary);
                bean.setTrace(exceptionString);
                Dialog dialog = (Dialog)FacesContext.getCurrentInstance().getViewRoot().findComponent("globalErrorDialog");
                if(dialog != null) {
                    dialog.setVisible(true);
                    FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add("globalErrorDialog");
                    FacesContext.getCurrentInstance().renderResponse();
                }

What do you think about that?
It is possible to enhance your AjaxExceptionHandler or create a new one with this functionality?

Try to fix warnings in MasterDetail with last Mojarra

In Development Stage we have in first use case

01.10.2012 16:19:11 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'sports_0_j_id2' because the UIComponent cannot be found
01.10.2012 16:19:11 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'sports_0_j_id3' because the UIComponent cannot be found
01.10.2012 16:27:55 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'countries_0_j_id24' because the UIComponent cannot be found
01.10.2012 16:27:57 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'countries_0_j_id25' because the UIComponent cannot be found
01.10.2012 16:28:01 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'countries_0_j_id52' because the UIComponent cannot be found
01.10.2012 16:28:01 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'countries_0_j_id53' because the UIComponent cannot be found
01.10.2012 16:28:03 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'sports_0_j_id64' because the UIComponent cannot be found
01.10.2012 16:28:03 com.sun.faces.application.view.FaceletPartialStateManagementStrategy saveDynamicActions
WARNUNG: Unable to save dynamic action with clientId 'sports_0_j_id65' because the UIComponent cannot be found

Related Mojarra / PF issues:
http://java.net/jira/browse/JAVASERVERFACES-2471
http://forum.primefaces.org/viewtopic.php?f=3&t=24530
http://code.google.com/p/primefaces/source/detail?r=8053

Note for me: see FaceletPartialStateManagementStrategy.saveView(). I think visitTree() should be overwritten for MasterDetail.

Tooltip display problem

What steps will reproduce the problem?
1.Add tooltip to the components which are very near to the right side border of the page view
2.We can clearly see the tooltip goes outside of the border

What is the expected output? What do you see instead?
Tooltip should be auto positioned based on page view.Where as overlayPanel able to do this job.

What version of the product are you using? On what operating system?
Version of the product is 0.5.x.But it can be reproducible with all versions.
Windows7
Please provide any additional information below.
http://forum.primefaces.org/viewtopic.php?f=14&t=26447

Note: Migrated fixed issue from google code for 0.6.3

Link CodeMirror Homepage on the component root pages

Thomas, would be it possible to list all available themes for CodeMirror in the documentation or direct in the showcase? According to this link http://codemirror.net/theme/ the following themes are available:

ambiance
blackboard
cobalt
eclipse
elegant
erlang-dark
lesser-dark
monokai
neat
night
rubyblue
vibrant-ink
xq-dark

Maybe a task for your apprentice? :-)

Sorry Oleg but i can't see any benefit. I must add a link for the modes etc. then, too. Same for CKEditor.
This components can't be used without the docu of our wrapped JS.

Sure, a link is fine.

MasterDetail navigation does not work in datatable

I tried to add a MasterDetail in a datatable, such like this:

<p:dataTable value="#{profilBean.newDives}" paginator="true" rows="1">
                <p:column>-->
                    <pe:masterDetail id="masterDetail" showAllBreadcrumbItems="true" level="#{profilBean.currentLevel}">
                        <pe:masterDetailLevel level="1">
                            <f:facet name="label">
                                <h:outputText value="Infos Générales" />
                            </f:facet>

                            <p:panelGrid columns="1" columnClasses="info_general">
                                <p:panelGrid columns="2" columnClasses="info_general_left_first" >
                                    <h:outputLabel value="Lieu"/>
                                    <p:autoComplete />
                                </p:panelGrid>

                                <hr />

                                <p:panelGrid columns="2" columnClasses="info_general_left_first" >
                                    <p:rating />
                                </p:panelGrid>

                                <hr />

                                <p:panelGrid columns="2" columnClasses="info_general_left_first" >
                                    <h:outputLabel value="Météo" />
                                    <p:selectOneMenu />
                                </p:panelGrid>

                                <hr />

                                <p:panelGrid columns="2" columnClasses="info_general_left_first" >
                                    <h:outputLabel value="Conditions" />
                                    <p:selectManyCheckbox >
                                        <f:selectItems value="#{enumEntityBean.conditions}" />
                                    </p:selectManyCheckbox>

                                </p:panelGrid>
                                <hr />
                                <p:commandButton value="Next">
                                    <pe:selectDetailLevel level="2"/>
                                </p:commandButton>
                            </p:panelGrid>
                        </pe:masterDetailLevel>

                        <pe:masterDetailLevel level="2" >
                            <f:facet name="label">
                                <h:outputText value="Commentaires" />
                            </f:facet>
                            <p:editor />
                        </pe:masterDetailLevel>

                    </pe:masterDetail>
                </p:column>
            </p:dataTable>

Clicking on Next button does not navigate to the next panel.

Never saw this. What do you want to achieve with MasterDetail in <p:dataTable value="#{profilBean.newDives}" paginator="true" rows="1">? You don't have "var" in p:dataTable. I suppose you want to layout out something. Use h:panelGrid for layout.

I don't have a var yet. Let's say, the user has to fill one or several forms. and the form is always the same (that's why it's in a datable).

I didn't understand the requirement. Maybe you can design a screenshot. We place one or more datatable(s) in MasterDetail and not MasterDetail in datatable.

Ok i will explain more in detail. I can't make a screenshot.
I want to fill a form step by step (see Wizard, but I prefer use MasterDetail, I like this breadcrumb interaction).

This form permits to fill all the information about a car race. By default, a user can fill one race manually, but with car computer, there is a file containing all the car race the driver made. So in this case, there is not juste one form but several forms, and they will be fill automatically by the system.

I want to give the possibility to the user, once the file imported, to navigate through each form (in order to verify the correctness of the information)

Ok, I will test this case later. Do you have any exception when you use MasterDetail in DataTable or does it simple stop to work?

No interesting log and no exception.

Where is your DataTable placed? If it is placed in another UIData (like TabView), the navigation will not work. This is a known problem in Mojarra with nested UIData. It works with MyFaces.

Auto-Height problem for Timeline component

  1. Using timeline comoponent
  2. Setting height variable auto
  3. run application

I'm expecting to see of dynamic height related timeline group count.
But I'm seeing nothing instead.

0.6.1 version and windows 8 OS

Note: migrated from google code for 0.6.3

Extend usage for timeline.js library functions

The Javascript library used for timeline component has lots of features that can be used, which can be seen on page below.

http://almende.github.com/chap-links-library/js/timeline/doc/

However, primefaces-extenstions provides very small set of those options.

We want to set other options for timeline object and also wanto to be able to redraw.

Is it possible to extend the functionality with a generic function to use any function of timeline library. (Infact the most effective ones will be setOptions and redraw but a generic function may support us to use any function in library).

As I can see from source currently it is only possible to use "init" "checkResize" "addEvent".

Regards,
Mustafa VAR

BUG with CKEditor and effects

What steps will reproduce the problem?

  1. Create a simple Primefaces tabview with 2 tabs and an effect (tested with (dynamic="true" cache="true" effect="drop")
  2. Add a ckEditor on second tab with a default value (value="test")
  3. Go to this second tab :)

What is the expected output? What do you see instead?
I expect to see an editor with this default value but instead i see an empty not-editable editor (it's not disabled but you can not write in it). If you remove the effect attribute everything works fine.

What version of the product are you using? On what operating system?
PF 3.4
PF Extensions 0.5.1
Mojarra 2.1.11
WIN XP
Tomcat 7.0.27

Please provide any additional information below.
Don't really know if it is a CKEditor,PF or PF Ext issue but it is very weird effects are somehow connected to displaying editors value..

Would you please try with trunk? I fixed an issue with tabs and other hidden containers. Maybe it's already fixed.

I just build the sources an sadly the problem is still there.Actually the new version broke something else too.
Here is a test page with a bit complex dynamic components that i use to test it.
In 0.5.1 both editors appear fine but there is the problem with not taking the value and becoming "disabled".
In 0.6.0-SNAPSHOT the first editor (first tab) appears as an textarea (the editor is not initialized) and the second appears fine but without the value as before. As i can see in 0.5.1 everything is fine when you remove effect from tabview.
Please do not hesitate to ask any further information you might need!

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:pe="http://primefaces.org/ui/extensions"
    xmlns:p="http://primefaces.org/ui">
    <h:head>
    </h:head>
<h:body>
    <f:view>
        <h:form id="mainform" prependId="false" target="_blank">
            <p:messages id="msg" showDetail="false" autoUpdate="true" />
            <p:accordionPanel id="acPanel" dynamic="true">
                <p:tab id="actab1" title="Test accordion">
                    <p:tabView id="innerTabView" dynamic="true" cache="true" effect="drop">
                        <p:tab id="tab1" title="test">
                            <p:panel toggleable="true" collapsed="true">                                
                                <f:facet name="header">
                                    Test panel
                                </f:facet>
                                <pe:ckEditor width="500"/>                              
                            </p:panel>
                        </p:tab>
                        <p:tab id="tab2" title="test2">
                            <p:panel toggleable="true" collapsed="true">                                
                                <f:facet name="header">
                                    Test panel2
                                </f:facet>
                                <pe:ckEditor value="asfas" width="500" />                           
                            </p:panel>
                        </p:tab>
                    </p:tabView>
                </p:tab>
            </p:accordionPanel>

        </h:form>
    </f:view>
</h:body>
</html>

Such an example does currently also not work with PF core components. I asked Cagatay if he has any idea: http://forum.primefaces.org/viewtopic.php?f=14&t=19179&p=77872#p77872.

As workaround, you can initialize the editor yourself after the "open tab" was clicked with:
myWidgetVar.overwriteSaveButton(); myWidgetVar.initialize();

Hello again!
Today (don't ask me why) i decided to look into this issue a bit more.
With the latest version of the trunk more editors (i'm talking only about my page of course) appear to be broken.

That is because since 0.5.1 the addition of the lazy CKEditor on hidden parent (revision 1350) the hidden parent don't have a widget. But you know this already as i can see from you forum post. But i think you are mistaken about who the hidden "parent" is. In the example (and in many many places in my page) editors are inside togglable PANELS (not tabs) that don't have a widget..As i can see from PF source accordion,inplace,tabview and fieldset all have widgets. But panels don't so that's why hiddenParent.data('widget') fails and no editor initialization is done on panel toggle.

Do you agree with my result? I don't know if PF should store a widget for panels or there can be a workaround in PF-Ext to register the initilization on panel toggle. Also the myWidgetVar.overwriteSaveButton(); myWidgetVar.initialize(); onShow doesn't work for my case since many panels and editors are produced dynamically inside ui:repeat so i can't have a myWidgetVar.
So unless somebody has an idea i will remove revision 1350 change for me and rebuild it without this "optimization".

Thanks for the support!
take care!

SHOWCASE: timePicker mode="spinner"

What steps will reproduce the problem?

  1. Navigate to pe:timePicker SHOWCASE page, navigate to the basic usage and 3 modes page
  2. Click inside the inputText field
  3. Click up arrow 1 or 2 times, on the timePicker (spinner mode)
  4. Click the down arrow 1 or 2 times, on the timePicker (spinner mode)

I am not able to duplicate this always, but I am able to duplicate this over 90% of the time.

What do you see instead?

See attached screen capture

What version of the product are you using? On what operating system?

PrimeFaces 3.4.1, Mobile 0.9.3, Extensions 0.6.0 | MyFaces 2.1.9 (JSF 2.1) | JUEL 2.2.5
GlassFish 3.1.2.2 | Apache Derby | MS Windows | Google Chrome

Clicked in Firefox 30 min. on up / down arrows, input field as you described. Can not reproduce. Popup disapperas with every cklick on an arrow.

Okay, I'm using Google Chrome. I just refreshed the page (via F5 key on keyboard), and still can duplicate this. :)

Hi,

I too can see the same issue.It can be reproducible only with the Chrome browser.No issues with FF and IE.

20121009_timePickerSpinnerModeIssue

TimePicker - showOn Button

New feature request:

TimePicker component should have the "showOn" attribute.
Default is focus (as at the moment), other option is button.
Button renders a button or icon (as calendar component). If the user click on the icon/button, the popup appears. No popup on focus, when showOn=button

What version of the product are you using? On what operating system?
0.4.0 / 0.5.1 with PF 3.3;
Tomcat 7.0.26; Windows 7 and Windows 2008 Server R2

Please provide any additional information below.
http://forum.primefaces.org/viewtopic.php?f=14&t=23647&p=73500#p73500

Improve InputNumber documentation

I'm working on the book's recipe for InputNumber and found some TODOs in the documentation. We normally describe default values, but InputNumber doesn't do this. It makes sense for decimalSeparator, thousandSeparator, roundMethod, decimalPlaces. It seems e.g. that decimalPlaces is 2 per default, but it's not mentioned in the tag. lib.

Also e.g. the validation message "The value must be greater than 50.00" in this example http://fractalsoft.net/primeext-showcase-mojarra/sections/inputNumber/advanceUsage.jsf is not correct. It should be "The value must be 50.00 or greater" because 50.00 is valid too.

And please remove partialSubmit="false" from all examples. partialSubmit="false" is the default in PrimeFaces.

Implement Carousel

We will write an jQuery plugin for Apple iTune-like content / image flow.

Edit (21.01.13): Edited issue's title. It's more than Image Flow. Any HTML content can "flow" and there are 100+ settings how it can look like. I decided to use carouFredSel.

Problem with the TriStateManyCheckbox and the rendering of objects in the f:selectItems and the usage of f:convetrer

This is the link to the description of the problem:

http://forum.primefaces.org/viewtopic.php?f=14&t=23222&p=71595#p71595

Mauricio, can you verify and fix this issue with converter please? Please look into the PF One-, ManyCheckbox. Maybe we need to synchronize last changes.

@stoennies Your example work ok with primefaces SelectManyCheckbox ???

Hi, it worked with JSF selectManyCheckbox....

pe:layout - Implement updatable nested layouts

What steps will reproduce the problem?

  1. Create a PE Layout
  2. Create several layoutPanes
  3. Try to update one layoutPane

What is the expected output? What do you see instead?

LayoutPane should have an ID or a styleClass that can be used in update attributes to update the content.

What version of the product are you using? On what operating system?

PF 3.4.1 and PE 0.6.0

Please provide any additional information below.

As workaround a outputPanel can be used within a layoutPane. However this does not work to update a layoutPane containing other layoutPanes as nested layoutPanes cannot have outputPanels between them.

PE 0.6.2 spotlight blocks pe:timePicker popup but 'not' p:calendar popup

What steps will reproduce the problem?

  1. Add pe:spotlight component as demonstrated in PrimeFaces Extensions showcase
  2. Add p:calendar and pe:timepicker inside of pe:spotlight component
  3. click 'Edit' button to unblock p:calendar and pe:timepicker (and any other fields inside pe:spotlight)
  4. Click on p:calendar inputText to set focus on p:calendar, and verify that pe:spotlight does NOT block jquery datepicker popup/dropdown (or p:calendar)
  5. Click on pe:timepicker inputText to set focus on timepicker, and verify that pe:spotlight 'blocked' pe:timepicker popup/dropdown

What is the expected output?

pe:timepicker popup/dropdown should NOT be blocked as p:calendar popup/dropdown is NOT blocked

What do you see instead?
#4 and #5 above

Forum topic URL:

http://forum.primefaces.org/viewtopic.php?f=14&t=27693

Added the following to my .css file, but this does not fix the problem on subsequent 'Edit' button clicks.

.ui-timepicker {
z-index:1007 !important;
}

Please add z-index to the style attribute of the following:

pe:inputNumber dont set null to an empty value

What steps will reproduce the problem?
1.access the pe:inputNumber example: http://fractalsoft.net/primeext-showcase-mojarra/sections/inputNumber/advanceUsage.jsf ;
2. Put a value >0 in the last field called "Empty value (empty) not required";
3. Submit the form;
4. See the output of the field "Empty value (empty) not required". It's ok.
5. Remove value of field "Empty value (empty) not required";
6. See the output value again.

It's expected "empty" (setting null in bean) but always set zero.

In my app I have the same problem, and I didn't see an solution using PE.
With p:inputText works fine.

Regards,

Evandro

The field displayed after submit is "Value of seventh input", not "Empty value (empty) not required".

Sorry

Of course!

If you follow the steps above you will find that, after submitting to a value and then deletes it, the field no longer receives the null value. Always assuming the value zero and not "null" as expected.

Hence the validation of "required" no longer works, because zero is a valid number.

Note: The first steps in the e-mail were executed in showcase.

so the displayed value is "empty" but the bean value is "0" but should be null?

n the third step the expected result is null and void should be displayed. What happens is that the number zero is displayed.

See the attached images.

step_1

step_2

step_3

This behavior is expected by the jquery plugin.
I won't change this logic for now.
Mauricio, would you like to take of it if you are able to work again?

Hi!

Ok, maybe a jquery behavior, but isn't a jsf behavior.

Today I'm using JSF inputText and this problem does not occur.

From what I saw in the source code, the error occurs by using the Double class directly. If he worked with string and return only when a number number was entered, the zero does not appear.

Similar to what is done in inputText.

Well, if you understand what behavior is expected. It only remains to close the ticket.

Exactly but i'm not the creator of this component and i never used it.
So IMO it's better that the developer of component should have a look at it or should decide.

I have the same problem as Evandro. In this case I saw before many tickets, but there is no solutions. Please fix it.

In diciempre 17 I will be again able to use my left hand.
As soon as I can I will seek solutions to this issue and other releated.

Thanks for understanding.

AjaxErrorHandler - problems in IBM Websphere Application Server 8.0, JBoss-7.1.1

What steps will reproduce the problem?

  1. Create page with UTF-8 encoding ...
  2. Define pe:ajaxErrorHandler:
    <pe:ajaxErrorHandler title="ľščťžýá {error-name}" >
    <f:facet name="ľščťžýá {error-message}">
    /pe:ajaxErrorHandler
  3. Call AJAX request whitch throws any Exception

Comment 1 by project member pavol.slany, Oct 29, 2012

Other problems in IBM WAS 8.0:

  • NullPointerException - if javax.faces.application.ViewExpiredException is throwed
  • Not working setResponseContentType("text/xml; charset=UTF-8") and setResponseEncoding("UTF-8"). Work fine, if it is not setted.

Summary: AjaxErrorHandler - problems in IBM Websphere Application Server 8.0
Delete comment
Comment 2 by project member andraschko.thomas, Oct 30, 2012

Please also test this with Tomcat 7.0.27 or newer.
IIRC there is a issue with ";" in contentType.

Delete comment
Comment 3 by project member pavol.slany, Oct 31, 2012

Thomas, I usually use Tomcat 7 and ajaxErrorHanlder works without problems.
Have you any really problem in Tomcat 7?
Thanks for your answer.

Delete comment
Comment 4 by project member andraschko.thomas, Oct 31, 2012

I don't have any problem but we regocnized this error from another library last weeek.
It was just a hint that we should test it :)
If it works fine, there is no problem.

Delete comment
Comment 5 by project member pavol.slany, Nov 23, 2012

Exception ViewExpiredException is throwed in PrimeFaces code.
I am finding solve for this problem and change TargetVersion to 0.7.

Labels: -TargetVersion-0.6.2 TargetVersion-0.7
Delete comment
Comment 6 by project member pavol.slany, Dec 12, 2012

Problem with NullPointerException is reported with JBoss-7.1.1 (with jboss-jsf-api_2.1_spec-2.0.5.Final.jar).
Link: http://forum.primefaces.org/viewtopic.php?f=14&t=27060

Summary: AjaxErrorHandler - problems in IBM Websphere Application Server 8.0, JBoss-7.1.1 (with jboss-jsf-api_2.1_spec-2.0.5.Final.jar) (was: AjaxErrorHandler - problems in IBM Websphere Application Server 8.0)
Delete comment
Comment 7 by project member pavol.slany, Dec 28, 2012

(No comment was entered for this change.)

Status: Started
Delete comment
Comment 9 by project member pavol.slany, Dec 28, 2012

Partial results:

  1. NullPointerException is not problem in code of PrimeFaces Extensions
  • problem is BUG in MOJARRA implementation, if javax.faces.PARTIAL_STATE_SAVING=false and javax.faces.STATE_SAVING_METHOD=server
  • it does not working in clearly JSF implementation too (... without other libraries as primefaces, primefaces-extensions, ...)
  • ajax error handler (from PE or other) catch IllegalArgumentException with "source null" (and not ViewExpiredException) ... this exception is throwed in restoring state
  • problem with configuration was tested on JETTY 8, TOMCAT 7, JBoss AS 7.1.1.Final, Glassfish 3.1.2.2
  1. NullPointerException and encoding problem in WAS 8.0 with myfaces are without results (not tested yet)

Delete comment
Comment 10 by project member pavol.slany, Dec 31, 2012

All problem resolved. Tested in WAS 8.0(myfaces), Glassfish 3.1.2.2(mojarra), JBossAS 7.1.1 Final (mojarra), Jetty 8.1.2 (mojarra), Jetty 8.1.2 (myfaces)

Note: migrated from google code for 0.6.3.

CKEditor should keep submittedValue after ValidationException

According to the JSF spec, an input component should rerender the submitted value after validation or conversion errors. The CKEditor displays the previous valid value instead.

For example when defining a max length of 20000 like this:

<pe:ckEditor>
     <f:validateLength maximum="20000" />
 </pe:ckEditor>

After validation error the submitted text should still be in the editor. Primefaces had similiar issues with its Autocomplete component, but it got fixed recently.

Vertical timeline

What is the expected output? What do you see instead?

I'd like to use a vertical small timeline with dynamic AJAX reloading capabilities.

What version of the product are you using? On what operating system?

0.3

TimeLine feature request

  • Entries could be stretchable, allowing on the left/right sides to extend/update an entry time definition (+ optionnal method callback on event) (as it is done in the Prime Core Schedule component with the little arrows + MouseDrag Event).
  • Entries could also be creatable inside the timeLine component(click + mouseDrag event draw + stretch to the right bound, and MouseRelease event create/command method call)
  • Grid customization, background color should be adaptable (not the axis but the grid).

For ex: on each day (or more globally, on specific time frame) you would set a background color to show the day availability for entry...
([0], [1, 25], [25, 50], [50, 75], [75, 99], [100] % availability with specific color code)

  • Limitation on the time axis scale (from "day" to "year", for example, if we want to skip "hours"/"minutes" and "decades"/"centuries" scale)

Maybe redline visibility could be switch to off

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.